Tkinter
Tkinter is the
Python interface to the Tk GUI toolkit current maintained by
Scriptics (http://www.scriptics.com). Tkinter has become
the de facto standard GUI toolkit for Python due mainly to its
cross-platform capabilities; it presents a powerful and adaptable GUI
model across the major Python platforms, including Windows 95/98/NT,
the Macintosh, and most Unix implementations and Linux distributions.
This section gives a short description of the capabilities of
Tkinter, and provides a whirlwind tour of the more important aspects
of the Tkinter framework. To effectively use Tkinter, you need a more
thorough description than is provided for here. Fredrik
Lundh has
made an excellent introduction to Tkinter programming available at
http://www.pythonware.com/library.htm, and at
time of printing a Tkinter book by Fredrik has just been announced,
so may be available by the time you read this. For more advanced uses
of Tkinter, you may need to refer directly to the Tk reference
manual, available from the Scriptics site.
Two Python applications,
tkBrowser and
tkDemo, accompany
this section. TkBrowser is a Doubletalk application, providing
several views and some small editing capabilities of Doubletalk
BookSets; TkDemo demonstrates a simple use of the
core Tk user interface elements. Both applications are too large to
include in their entirety, so where relevant, we include snippets.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access