python simple input popup

38

#pip install easygui
import easygui
Res1= easygui.enterbox(msg="Your name?")
Res2= easygui.integerbox(msg="Enter price", upperbound=999)
print(Res1, type(Res1), Res2, type(Res2)) 
# Prints--> Bob <class 'str'> 150 <class 'int'>

Comments

Submit
0 Comments