Skip to content

Commit f6489f9

Browse files
committed
Merged revisions 75264,75268,75293,75318,75391-75392,75436,75478,75971,76003,76058,76140-76141,76231,76380,76428-76429 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75264 | andrew.kuchling | 2009-10-05 17:30:22 -0500 (Mon, 05 Oct 2009) | 1 line Add various items ........ r75268 | andrew.kuchling | 2009-10-05 17:45:39 -0500 (Mon, 05 Oct 2009) | 1 line Remove two notes ........ r75293 | kristjan.jonsson | 2009-10-09 09:32:19 -0500 (Fri, 09 Oct 2009) | 2 lines http://bugs.python.org/issue7029 a non-default timer wasn't actually used by the individual Tests. ........ r75318 | benjamin.peterson | 2009-10-10 16:15:58 -0500 (Sat, 10 Oct 2009) | 1 line remove script which uses long gone module ........ r75391 | andrew.kuchling | 2009-10-13 10:49:33 -0500 (Tue, 13 Oct 2009) | 1 line Link to PEP ........ r75392 | andrew.kuchling | 2009-10-13 11:11:49 -0500 (Tue, 13 Oct 2009) | 1 line Various link, textual, and markup fixes ........ r75436 | benjamin.peterson | 2009-10-15 10:39:15 -0500 (Thu, 15 Oct 2009) | 1 line don't need to mess up sys.path ........ r75478 | senthil.kumaran | 2009-10-17 20:58:45 -0500 (Sat, 17 Oct 2009) | 3 lines Fix a typo. ........ r75971 | benjamin.peterson | 2009-10-30 22:56:15 -0500 (Fri, 30 Oct 2009) | 1 line add some checks for evaluation order with parenthesis #7210 ........ r76003 | antoine.pitrou | 2009-10-31 19:30:13 -0500 (Sat, 31 Oct 2009) | 6 lines Hopefully fix the buildbot problems on test_mailbox, by computing the maildir toc cache refresh date before actually refreshing the cache. (see #6896) ........ r76058 | benjamin.peterson | 2009-11-02 10:14:19 -0600 (Mon, 02 Nov 2009) | 1 line grant list.index() a more informative error message #7252 ........ r76140 | nick.coghlan | 2009-11-07 02:13:55 -0600 (Sat, 07 Nov 2009) | 1 line Add test for runpy.run_module package execution and use something other than logging as the example of a non-executable package ........ r76141 | nick.coghlan | 2009-11-07 02:15:01 -0600 (Sat, 07 Nov 2009) | 1 line Some minor cleanups to private runpy code and docstrings ........ r76231 | benjamin.peterson | 2009-11-12 17:42:23 -0600 (Thu, 12 Nov 2009) | 1 line this main is much more useful ........ r76380 | antoine.pitrou | 2009-11-18 14:20:46 -0600 (Wed, 18 Nov 2009) | 3 lines Mention Giampolo R's new FTP TLS support in the what's new file ........ r76428 | benjamin.peterson | 2009-11-19 20:15:50 -0600 (Thu, 19 Nov 2009) | 1 line turn goto into do while loop ........ r76429 | benjamin.peterson | 2009-11-19 20:56:43 -0600 (Thu, 19 Nov 2009) | 2 lines avoid doing an uneeded import in a function ........
1 parent 5554993 commit f6489f9

File tree

12 files changed

+693
-257
lines changed

12 files changed

+693
-257
lines changed

Demo/scripts/wh.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

Doc/faq/gui.rst

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,26 @@ For more info about Tk, including pointers to the source, see the Tcl/Tk home
2525
page at http://www.tcl.tk. Tcl/Tk is fully portable to the MacOS, Windows, and
2626
Unix platforms.
2727

28-
wxWindows
28+
wxWidgets
2929
'''''''''
3030

31-
wxWindows is a portable GUI class library written in C++ that's a portable
32-
interface to various platform-specific libraries; wxWidgets is a Python
33-
interface to wxWindows. wxWindows supports Windows and MacOS; on Unix variants,
34-
it supports both GTk+ and Motif toolkits. wxWindows preserves the look and feel
35-
of the underlying graphics toolkit, and there is quite a rich widget set and
36-
collection of GDI classes. See `the wxWindows page <http://www.wxwindows.org>`_
37-
for more details.
31+
wxWidgets is a GUI class library written in C++ that's a portable
32+
interface to various platform-specific libraries, and that has a
33+
Python interface called `wxPython <http://www.wxpython.org>`__.
3834

39-
`wxWidgets <http://wxwidgets.org>`_ is an extension module that wraps many of
40-
the wxWindows C++ classes, and is quickly gaining popularity amongst Python
41-
developers. You can get wxWidgets as part of the source or CVS distribution of
42-
wxWindows, or directly from its home page.
35+
wxWidgets preserves the look and feel of the
36+
underlying graphics toolkit, and has a large set of widgets and
37+
collection of GDI classes. See `the wxWidgets page
38+
<http://www.wxwidgets.org>`_ for more details.
39+
40+
wxWidgets supports Windows and MacOS; on Unix variants,
41+
it supports both GTk+ and Motif toolkits.
4342

4443
Qt
4544
'''
4645

4746
There are bindings available for the Qt toolkit (`PyQt
48-
<http://www.riverbankcomputing.co.uk/software/pyqt/>`_) and for KDE (PyKDE). If
47+
<http://www.riverbankcomputing.co.uk/software/pyqt/>`_) and for KDE (`PyKDE <http://www.riverbankcomputing.co.uk/software/pykde/intro>`__). If
4948
you're writing open source software, you don't need to pay for PyQt, but if you
5049
want to write proprietary applications, you must buy a PyQt license from
5150
`Riverbank Computing <http://www.riverbankcomputing.co.uk>`_ and (up to Qt 4.4;
@@ -56,7 +55,7 @@ Gtk+
5655
''''
5756

5857
PyGtk bindings for the `Gtk+ toolkit <http://www.gtk.org>`_ have been
59-
implemented by by James Henstridge; see ftp://ftp.gtk.org/pub/gtk/python/.
58+
implemented by James Henstridge; see <http://www.pygtk.org>.
6059

6160
FLTK
6261
''''
@@ -85,14 +84,15 @@ What platform-specific GUI toolkits exist for Python?
8584

8685
`The Mac port <http://python.org/download/mac>`_ by Jack Jansen has a rich and
8786
ever-growing set of modules that support the native Mac toolbox calls. The port
88-
includes support for MacOS9 and MacOS X's Carbon libraries. By installing the
89-
`PyObjc Objective-C bridge <http://pyobjc.sourceforge.net>`_, Python programs
90-
can use MacOS X's Cocoa libraries. See the documentation that comes with the Mac
91-
port.
87+
supports MacOS X's Carbon libraries.
88+
89+
By installing the `PyObjc Objective-C bridge
90+
<http://pyobjc.sourceforge.net>`_, Python programs can use MacOS X's
91+
Cocoa libraries. See the documentation that comes with the Mac port.
9292

9393
:ref:`Pythonwin <windows-faq>` by Mark Hammond includes an interface to the
94-
Microsoft Foundation Classes and a Python programming environment using it
95-
that's written mostly in Python.
94+
Microsoft Foundation Classes and a Python programming environment
95+
that's written mostly in Python using the MFC classes.
9696

9797

9898
Tkinter questions
@@ -105,23 +105,26 @@ Freeze is a tool to create stand-alone applications. When freezing Tkinter
105105
applications, the applications will not be truly stand-alone, as the application
106106
will still need the Tcl and Tk libraries.
107107

108-
One solution is to ship the application with the tcl and tk libraries, and point
108+
One solution is to ship the application with the Tcl and Tk libraries, and point
109109
to them at run-time using the :envvar:`TCL_LIBRARY` and :envvar:`TK_LIBRARY`
110110
environment variables.
111111

112112
To get truly stand-alone applications, the Tcl scripts that form the library
113113
have to be integrated into the application as well. One tool supporting that is
114114
SAM (stand-alone modules), which is part of the Tix distribution
115-
(http://tix.mne.com). Build Tix with SAM enabled, perform the appropriate call
116-
to Tclsam_init etc inside Python's Modules/tkappinit.c, and link with libtclsam
117-
and libtksam (you might include the Tix libraries as well).
115+
(http://tix.sourceforge.net/).
116+
117+
Build Tix with SAM enabled, perform the appropriate call to
118+
:cfunc:`Tclsam_init`, etc. inside Python's
119+
:file:`Modules/tkappinit.c`, and link with libtclsam and libtksam (you
120+
might include the Tix libraries as well).
118121

119122

120123
Can I have Tk events handled while waiting for I/O?
121124
---------------------------------------------------
122125

123126
Yes, and you don't even need threads! But you'll have to restructure your I/O
124-
code a bit. Tk has the equivalent of Xt's XtAddInput() call, which allows you
127+
code a bit. Tk has the equivalent of Xt's :cfunc:`XtAddInput()` call, which allows you
125128
to register a callback function which will be called from the Tk mainloop when
126129
I/O is possible on a file descriptor. Here's what you need::
127130

0 commit comments

Comments
 (0)