Skip to content

Commit 81bfcf1

Browse files
tungolpicnixz
andauthored
gh-127930: use explicit imports in tkinter.simpledialog (#127931)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent a2a400a commit 81bfcf1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎Lib/tkinter/simpledialog.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
askstring -- get a string from the user
2424
"""
2525

26-
fromtkinterimport*
26+
fromtkinterimportButton, Entry, Frame, Label, Message, Tk, Toplevel
2727
fromtkinterimport_get_temp_root, _destroy_temp_root
2828
fromtkinterimportmessagebox
29+
fromtkinter.constantsimportACTIVE, BOTH, END, LEFT, RIDGE, W, E
30+
31+
__all__= ["SimpleDialog", "Dialog", "askinteger", "askfloat", "askstring"]
2932

3033

3134
classSimpleDialog:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ``__all__`` to :mod:`tkinter.simpledialog`.

0 commit comments

Comments
(0)