blob: 5a84285bdc7862b429608de3d6c965ed5f4886c3 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001.. _other-gui-packages:
2
3Other Graphical User Interface Packages
4=======================================
5
6There are an number of extension widget sets to :mod:`Tkinter`.
7
8
9.. seealso::
10
11 `Python megawidgets <http://pmw.sourceforge.net/>`_
12 is a toolkit for building high-level compound widgets in Python using the
13 :mod:`Tkinter` module. It consists of a set of base classes and a library of
14 flexible and extensible megawidgets built on this foundation. These megawidgets
15 include notebooks, comboboxes, selection widgets, paned widgets, scrolled
16 widgets, dialog windows, etc. Also, with the Pmw.Blt interface to BLT, the
17 busy, graph, stripchart, tabset and vector commands are be available.
18
19 The initial ideas for Pmw were taken from the Tk ``itcl`` extensions ``[incr
20 Tk]`` by Michael McLennan and ``[incr Widgets]`` by Mark Ulferts. Several of the
21 megawidgets are direct translations from the itcl to Python. It offers most of
22 the range of widgets that ``[incr Widgets]`` does, and is almost as complete as
23 Tix, lacking however Tix's fast :class:`HList` widget for drawing trees.
24
25 `Tkinter3000 Widget Construction Kit (WCK) <http://tkinter.effbot.org/>`_
26 is a library that allows you to write new Tkinter widgets in pure Python. The
27 WCK framework gives you full control over widget creation, configuration, screen
28 appearance, and event handling. WCK widgets can be very fast and light-weight,
29 since they can operate directly on Python data structures, without having to
30 transfer data through the Tk/Tcl layer.
31
32 .. %
33
34The major cross-platform (Windows, Mac OS X, Unix-like) GUI toolkits that are
35also available for Python:
36
37
38.. seealso::
39
40 `PyGTK <http://www.pygtk.org/>`_
41 is a set of bindings for the `GTK <http://www.gtk.org/>`_ widget set. It
42 provides an object oriented interface that is slightly higher level than the C
43 one. It comes with many more widgets than Tkinter provides, and
44 has good Python-specific reference documentation. There are also `bindings
45 <http://www.daa.com.au/~james/gnome/>`_ to `GNOME <http://www.gnome.org>`_.
46 One well known PyGTK application is
47 `PythonCAD <http://www.pythoncad.org/>`_. An
48 online `tutorial <http://www.pygtk.org/pygtk2tutorial/index.html>`_ is
49 available.
50
Georg Brandl2b92f6b2007-12-06 01:52:24 +000051 `PyQt <http://www.riverbankcomputing.co.uk/pyqt/index.php>`_
Georg Brandl8ec7f652007-08-15 14:28:01 +000052 PyQt is a :program:`sip`\ -wrapped binding to the Qt toolkit. Qt is an
53 extensive C++ GUI application development framework that is
54 available for Unix, Windows and Mac OS X. :program:`sip` is a tool
55 for generating bindings for C++ libraries as Python classes, and
56 is specifically designed for Python. The *PyQt3* bindings have a
57 book, `GUI Programming with Python: QT Edition
58 <http://www.commandprompt.com/community/pyqt/>`_ by Boudewijn
59 Rempt. The *PyQt4* bindings also have a book, `Rapid GUI Programming
60 with Python and Qt <http://www.qtrac.eu/pyqtbook.html>`_, by Mark
61 Summerfield.
62
63 `wxPython <http://www.wxpython.org>`_
64 wxPython is a cross-platform GUI toolkit for Python that is built around
65 the popular `wxWidgets <http://www.wxwidgets.org/>`_ (formerly wxWindows)
Georg Brandl1bd51e32007-12-16 16:00:36 +000066 C++ toolkit. It provides a native look and feel for applications on
Georg Brandl8ec7f652007-08-15 14:28:01 +000067 Windows, Mac OS X, and Unix systems by using each platform's native
Georg Brandl1bd51e32007-12-16 16:00:36 +000068 widgets where ever possible, (GTK+ on Unix-like systems). In addition to
Georg Brandl8ec7f652007-08-15 14:28:01 +000069 an extensive set of widgets, wxPython provides classes for online
70 documentation and context sensitive help, printing, HTML viewing,
71 low-level device context drawing, drag and drop, system clipboard access,
72 an XML-based resource format and more, including an ever growing library
Georg Brandl1bd51e32007-12-16 16:00:36 +000073 of user-contributed modules. wxPython has a book, `wxPython in Action
Georg Brandl8ec7f652007-08-15 14:28:01 +000074 <http://www.amazon.com/exec/obidos/ASIN/1932394621>`_, by Noel Rappin and
75 Robin Dunn.
76
77PyGTK, PyQt, and wxPython, all have a modern look and feel and far more
78widgets and better documentation than Tkinter. In addition,
79there are many other GUI toolkits for Python, both cross-platform, and
80platform-specific. See the `GUI Programming
81<http://wiki.python.org/moin/GuiProgramming>`_ page in the Python Wiki for a
82much more complete list, and also for links to documents where the
83different GUI toolkits are compared.
84