Issue #9384: python -m tkinter will now display a simple demo applet.

This commit is contained in:
Alexander Belopolsky 2010-07-27 14:16:32 +00:00
parent 5a63183a8b
commit c02cc2707a
3 changed files with 12 additions and 1 deletions

7
Lib/tkinter/__main__.py Normal file
View file

@ -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()