Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: python sleep milliseconds 
Python :: np float to int 
Python :: python heart code 
Python :: How to Add a Title to Seaborn Plots 
Python :: check if any value is null in pandas dataframe 
Python :: flask minimal install 
Python :: how to get the current date hour minute month year in python 
Python :: how to find wifi password using python 
Python :: file exist python 
Python :: python open new chrome tab 
Python :: python file open modes 
Python :: log base 2 python 
Python :: convert numpy array to dataframe 
Python :: update anaconda 
Python :: next prime number in python 
Python :: pandas append dictionary to dataframe 
Python :: python flatten dict 
Python :: how to play music on pygame 
Python :: random color python matplotlib 
Python :: display max rows pandas 
Python :: how to do pandas profiling 
Python :: matplotlib plot remove margins 
Python :: pandas groupby count as new column 
Python :: jupyter notebook show more rows 
Python :: using regex validators in django models 
Python :: python format currency 
Python :: python reciprocal 
Python :: define a column as index pandas 
Python :: python is letter or number functin 
Python :: python process id 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =