Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python gui capture user input

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)
Source by djangocentral.com #
 
PREVIOUS NEXT
Tagged: #python #gui #capture #user #input
ADD COMMENT
Topic
Name
3+1 =