gh-127930: use explicit imports in tkinter.simpledialog (#127931)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
Stephen Morton 2025-12-14 02:38:42 -08:00 committed by GitHub
parent a2a400af1e
commit 81bfcf1aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -23,9 +23,12 @@
askstring -- get a string from the user
"""
from tkinter import *
from tkinter import Button, Entry, Frame, Label, Message, Tk, Toplevel
from tkinter import _get_temp_root, _destroy_temp_root
from tkinter import messagebox
from tkinter.constants import ACTIVE, BOTH, END, LEFT, RIDGE, W, E
__all__ = ["SimpleDialog", "Dialog", "askinteger", "askfloat", "askstring"]
class SimpleDialog:

View file

@ -0,0 +1 @@
Add ``__all__`` to :mod:`tkinter.simpledialog`.