Back to Home

Visual Tcl Theme Widget GUI Designer

tcl / tk · ttk · python · tkinter · page · notebook · combobox · gui

Visual Tcl Theme Widget GUI Designer

    imageThe 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 Themed Widgets TTK widgets . Even more surprising, the vTcl constructor only supports classic tk widgets. This can be partially explained by the support in vTcl of BWidget widgets, which historically include widgets for creating Notebooks, comboboxes, etc.:

    image


    With BWidget widgets at your disposal, you can theoretically dispense with themed widgets such as notebook, combobox, etc.

    imageOn the other hand, on the basis of vTcl, the PAGE constructor (Python Automatic GUI Generator) was created, which generates a Python GUI with Tkinter. In this case, both classic Tk widgets and themed TTK widgets are used. And immediately a natural desire arose: if vTcl actually became the progenitor of the PAGE constructor, then why the latter cannot share support for Themed Widgets and at least partially return the “debt” to their ancestor to the Visual Tcl constructor. The grateful ancestor not only accepted themed widgets from the PAGE constructor into his bosom, but also did not forget to add the TSeparator widget to them (both vertical and horizontal):

    image

    Padding attributes were added to the number of editable attributes (Attribute Editor) of theme widgets, and the most important thing for theme widgets is the style attribute.
    The main vTcl window, taking into account the added features, began to look like this:

    image

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

    image

    Read Next