mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Issue #9384: python -m tkinter will now display a simple demo applet.
This commit is contained in:
parent
5a63183a8b
commit
c02cc2707a
3 changed files with 12 additions and 1 deletions
7
Lib/tkinter/__main__.py
Normal file
7
Lib/tkinter/__main__.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue