python gui capture user input

Solutions on MaxInterview for python gui capture user input by the best coders in the world

showing results for - "python gui capture user input"
Emely
10 Feb 2020
1import tkinter as tk
2from tkinter import simpledialog
3
4ROOT = tk.Tk()
5
6ROOT.withdraw()
7# the input dialog
8USER_INP = simpledialog.askstring(title="Test",
9                                  prompt="What's your Name?:")
10
11# check it out
12print("Hello", USER_INP)