mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
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:
@@ -23,9 +23,12 @@ askfloat -- get a float from the user
|
||||
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:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Add ``__all__`` to :mod:`tkinter.simpledialog`.
|
||||
Reference in New Issue
Block a user