[Python-checkins] r83177 - in python/branches/py3k: Doc/library/tkinter.rst Lib/tkinter/__main__.py Misc/NEWS
alexander.belopolsky
python-checkins at python.org
Tue Jul 27 16:16:36 CEST 2010
Author: alexander.belopolsky
Date: Tue Jul 27 16:16:32 2010
New Revision: 83177
Log:
Issue #9384: python -m tkinter will now display a simple demo applet.
Added:
python/branches/py3k/Lib/tkinter/__main__.py
Modified:
python/branches/py3k/Doc/library/tkinter.rst
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Doc/library/tkinter.rst
==============================================================================
--- python/branches/py3k/Doc/library/tkinter.rst (original)
+++ python/branches/py3k/Doc/library/tkinter.rst Tue Jul 27 16:16:32 2010
@@ -9,7 +9,9 @@
The :mod:`tkinter` package ("Tk interface") is the standard Python interface to
the Tk GUI toolkit. Both Tk and :mod:`tkinter` are available on most Unix
platforms, as well as on Windows systems. (Tk itself is not part of Python; it
-is maintained at ActiveState.)
+is maintained at ActiveState.) You can check that :mod:`tkinter` is properly
+installed on your system by running ``python -m tkinter`` from the command line;
+this should open a window demonstrating a simple Tk interface.
.. seealso::
Added: python/branches/py3k/Lib/tkinter/__main__.py
==============================================================================
--- (empty file)
+++ python/branches/py3k/Lib/tkinter/__main__.py Tue Jul 27 16:16:32 2010
@@ -0,0 +1,7 @@
+"""Main entry point"""
+
+import sys
+if sys.argv[0].endswith("__main__.py"):
+ sys.argv[0] = "python -m tkinter"
+from . import _test as main
+main()
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Tue Jul 27 16:16:32 2010
@@ -473,6 +473,8 @@
Library
-------
+- Issue #9384: python -m tkinter will now display a simple demo applet.
+
- The default size of the re module's compiled regular expression cache has
been increased from 100 to 500 and the cache replacement policy has changed
from simply clearing the entire cache on overflow to randomly forgetting 20%
More information about the Python-checkins
mailing list