O'Reilly logo

Tkinter GUI Application Development HOTSHOT by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ttk widgets

The ttk widget is based on a revised and enhanced version of TIP #48 (http://tip.tcl.tk/48) specified style engine.

FILE: path\to\python27\\lib\lib-tk\ttk.py

The basic idea is to separate, to the extent possible, the code implementing a widget's behavior from the code implementing its appearance. Widget class bindings are primarily responsible for maintaining the widget state and invoking callbacks, and all aspects of the widgets appearance lies under themes.

You can substitute some Tkinter widgets with their corresponding ttk widgets (Button, Checkbutton, Entry, Frame, Label, LabelFrame, Menubutton, PanedWindow, Radiobutton, Scale, and Scrollbar).

However, Tkinter and ttk widgets are not completely compatible. The main difference is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required