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 <[email protected]>
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-
from tkinter import *
26+
from tkinter import Button, Entry, Frame, Label, Message, Tk, Toplevel
2727
from tkinter import _get_temp_root, _destroy_temp_root
2828
from tkinter import messagebox
29+
from tkinter.constants import ACTIVE, BOTH, END, LEFT, RIDGE, W, E
30+
31+
__all__ = ["SimpleDialog", "Dialog", "askinteger", "askfloat", "askstring"]
2932

3033

3134
class SimpleDialog:
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)