diff options
author | Flavian Hautbois <flavianh@sicara.com> | 2019-07-26 01:30:33 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-26 01:30:33 (GMT) |
commit | 76b645124b3aaa34bc664eece43707c01ef1b382 (patch) | |
tree | 10aaa3e7e89080bd68128c4de544050599d261bf /Lib/tkinter/dialog.py | |
parent | c4cda4369f4b8f33082890d16dfc364a90658ef6 (diff) | |
download | cpython-76b645124b3aaa34bc664eece43707c01ef1b382.zip cpython-76b645124b3aaa34bc664eece43707c01ef1b382.tar.gz cpython-76b645124b3aaa34bc664eece43707c01ef1b382.tar.bz2 |
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.
Diffstat (limited to 'Lib/tkinter/dialog.py')
-rw-r--r-- | Lib/tkinter/dialog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/dialog.py b/Lib/tkinter/dialog.py index cb463f7..8ae2140 100644 --- a/Lib/tkinter/dialog.py +++ b/Lib/tkinter/dialog.py @@ -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' |