📜  tkinter 输入弹出窗口 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:04.829000             🧑  作者: Mango

代码示例1
import tkinter as tk
from tkinter import simpledialog

ROOT = tk.Tk()

ROOT.withdraw()
# the input dialog
USER_INP = simpledialog.askstring(title="Test",
                                  prompt="What's your Name?:")

# check it out
print("Hello", USER_INP)