24.7. 其他图形用户界面(GUI)包¶
Python 可用的主要跨平台(Windows,Mac OS X,类Unix)GUI 工具:
参见
- PyGTK
is a set of bindings for the GTK widget set. It provides an object oriented interface that is slightly higher level than the C one. It comes with many more widgets than Tkinter provides, and has good Python-specific reference documentation. There are also bindings to GNOME. An online tutorial is available.
- PyQt
PyQt is a sip-wrapped binding to the Qt toolkit. Qt is an extensive C++ GUI application development framework that is available for Unix, Windows and Mac OS X. sip is a tool for generating bindings for C++ libraries as Python classes, and is specifically designed for Python. The PyQt3 bindings have a book, GUI Programming with Python: QT Edition by Boudewijn Rempt. The PyQt4 bindings also have a book, Rapid GUI Programming with Python and Qt, by Mark Summerfield.
- wxPython
wxPython is a cross-platform GUI toolkit for Python that is built around the popular wxWidgets (formerly wxWindows) C++ toolkit. It provides a native look and feel for applications on Windows, Mac OS X, and Unix systems by using each platform’s native widgets where ever possible, (GTK+ on Unix-like systems). In addition to an extensive set of widgets, wxPython provides classes for online documentation and context sensitive help, printing, HTML viewing, low-level device context drawing, drag and drop, system clipboard access, an XML-based resource format and more, including an ever growing library of user-contributed modules. wxPython has a book, wxPython in Action, by Noel Rappin and Robin Dunn.
PyGTK, PyQt 和 wxPython 都拥有比 Tkinter 更现代的外观效果和更多的可视化部件。 此外还存在许多其他适用于 Python 的 GUI 工具集,既有跨平台的,也有特定平台专属的。 请参阅 Python Wiki 中的 GUI 编程 页面查看更完整的列表,以及不同 GUI 工具集对比文档的链接。