The fundamental unit of a Tkinter GUI is a Widget. You can use the "built-in" widgets that are provided by Tk (listed below), create your own, or install extension packages that define additional widgets.

Widgets provided by Tk include:

Widgets added in Tk 8.4 include:

Also compound buttons, labels, and menu items. the compound option allows you to display both the text and image. ExampleCompoundButton

(In the interest of WikiWikiNess, should we change the above to ButtonWidget, CanvasWidget, etc.?) [no. The above should be named like the Python classes. --jepler](I agree keep them the same as Tkinter class names - but do we need the '/'? MF)

BTW, you can get all configuration options for any widget with:

for k in widget.configure().keys():
   print k, ':', widget.cget(k)

-john grayson

>>> from Tkinter import Button
>>> b = Button()
>>> for k in b.configure().keys():
        print k, ':', b.cget(k)

Additional Tkinter (pure python) widgets:

Table/Grid Widgets

Tree Widgets

Additional Tcl/Tk widgets that have Python Tkinter wrappers include:

Additional widget sets you can use with Tkinter include:

Need some text on how and where to install some of these widget sets (Blt is especially problematic). Also, need some screenshots (nothing is available for bwidgets) on some of these resources. Lastly, is it possible to mix and match the widgets?

tkinter: Widgets (last edited 2012-11-16 19:18:02 by p4FD1BC77)