Saturday, August 25, 2012

Tkinter Message Box Demo

This code is based on the Tcl msgbox.tcl demo. Select an icon and type then press the Show Message Box to see the configured message box.

Thursday, August 23, 2012

Tkinter Dockable Toolbar Demo

This code is based on the Tcl toolbar.tcl demo. It demonstrates the creation of toolbar which can be torn-off,  and restored to, the main application window.


Wednesday, August 22, 2012

Tkinter Menubutton Demo

This code is based on the Tcl menubu.tcl demo. It demonstrates the use of ttk.Menubutton as well as ttk.OptionMenu.  The button labels refer to the positions of the popup-menus and not the position of the budget within the window.



Tuesday, August 21, 2012

Tkinter Menu Demo

This code is based on the Tcl menu.tcl demo. It demonstrates creating top level, cascading menus some of which include icons, radio and check buttons, as well as short-cut keys and accelerator keys. Only the Colors menu is implemented as a tear-off; a menu that can be opened as a separate window.




Sunday, August 19, 2012

Tkinter Notebook Demo

This code is based on the Tcl ttknote.tcl demo. A ttk.Notebook with three tabs, one disabled, is displayed.

Saturday, August 18, 2012

Tkinter Nested Paned Windows Demo

This code is based on the Tcl ttkpane.tcl demo. A number of nested paned windows are created to which widgets are added. Draggable sashes exist between each of the nested panes i.e. between the Button and Clocks, Progress and Text and between the two panes holding the foregoing. The code makes use of the Tcl/Tk clock command to update the clock labels every 1000ms.

Tkinter Vertical Paned Window Demo

This code is based on the Tcl paned2.tcl demo.