📜 ⬆️ ⬇️

Visual Tcl GUI Designer with theme widget support

image The latest version of the Visual Tcl GUI Designer relies on the use of the Tcl / Tk version 8.6 package. This package includes both classic Tk-widgets and thematic TTK widgets (Themed Widgets). All the more surprising, the vTcl designer only supports classic tk-widgets. In part, this can be explained by the BWidget widget support in vTcl, which historically includes widgets for creating notebooks, comboboxes, etc .:

image


Having BWidget widgets at your disposal, you can theoretically do without thematic widgets of notebook, combobox, etc.

image On the other hand, based on vTcl, a PAGE constructor (Python Automatic GUI Generator) was created, which generates a Python GUI with Tkinter. It uses both classic Tk widgets and TTK themed widgets. And immediately a natural desire arose: if vTcl actually became the progenitor of the PAGE constructor, then why can't the latter share support for themed widgets (Themed Widgets) and at least partially return the “debt” to their progenitor Visual Tcl designer. The grateful grandparent not only accepted thematic widgets from the PAGE constructor, but did not forget to add the TSeparator widget (both vertical and horizontal) to them:
')
image

Padding attributes were added to the number of editable attributes (Attribute Editor) of thematic widgets and the style attribute was the most important for thematic widgets.
The main window of vTcl with the added features began to look like this:

image

Enable / disable support for TTK widgets in the Preferences window
(File-> Preferences-> Libraries-> lib_ttk.tcl)

image

Source: https://habr.com/ru/post/346410/


All Articles