mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-29446: tkinter 'import *' only imports what it should (GH-14864)
Add __all__ to tkinter.__init__ and submodules. Replace 'import *' with explicit imports in some submodules.
This commit is contained in:
parent
c4cda4369f
commit
76b645124b
12 changed files with 52 additions and 15 deletions
|
@ -1,7 +1,8 @@
|
|||
# dialog.py -- Tkinter interface to the tk_dialog script.
|
||||
|
||||
from tkinter import *
|
||||
from tkinter import _cnfmerge
|
||||
from tkinter import _cnfmerge, Widget, TclError, Button, Pack
|
||||
|
||||
__all__ = ["Dialog"]
|
||||
|
||||
DIALOG_ICON = 'questhead'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue