Index: Misc/NEWS =================================================================== --- Misc/NEWS (revision 83159) +++ Misc/NEWS (working copy) @@ -473,6 +473,8 @@ Library ------- +- Issue #9384: python -m tkinter will now display a simple demo applet. + - Issue #7113: Speed up loading in configparser. Patch by Ɓukasz Langa. - Issue #9032: XML-RPC client retries the request on EPIPE error. The EPIPE Index: Doc/library/tkinter.rst =================================================================== --- Doc/library/tkinter.rst (revision 83159) +++ Doc/library/tkinter.rst (working copy) @@ -6,10 +6,13 @@ .. moduleauthor:: Guido van Rossum -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.) +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.) 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:: Index: Lib/tkinter/__main__.py =================================================================== --- Lib/tkinter/__main__.py (revision 0) +++ Lib/tkinter/__main__.py (revision 0) @@ -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()