[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版

(yzsuai) #1

Moreover, we haven’t even mentioned any of the higher-level widgets available in the
popular Pmw, Tix, or ttk extension packages for tkinter (described in Chapter 7) or
any other third-party packages in general. For instance:



  • Tix and ttk both provide additional widget options outlined in Chapter 7, which
    are now part of Python’s standard library.

  • The third-party domain tends to change over time, but has hosted tree widgets,
    HTML viewers, font selection dialogs, tables, and much more for tkinter, and in-
    cludes the Pmw megawidget set.

  • Many tkinter programs such as Python’s standard IDLE development GUI include
    font dialogs, tree widgets, and more that you may be able to use in your own
    applications.


Because such extensions are too complex for us to cover in a useful fashion here,
though, we’ll defer to other resources in the interest of space. To sample richer options
for your GUI scripts, be sure to consult tkinter, Tk, Tix, ttk, and Pmw documentation
for more details on additional widgets, and visit the PyPI website at http://python.org/
or search the Web for other third-party tkinter extensions.


I should also mention that there are more widget configuration options than we have
met on this tour. Consult Tk and tkinter resources for options not listed explicitly here.
Although other tkinter tools are analogous to those presented here, the space I have for
illustrating additional widgets and options in this book is limited by both my publisher
and the finite nature of trees.


596 | Chapter 9: A tkinter Tour, Part 2

Free download pdf