Python GUI Tutorial - 36 - input through popup window

Tech-Gram Academy
Tech-Gram Academy
29 هزار بار بازدید - 6 سال پیش - in this video, you'll learn
in this video, you'll learn about how we can take input from pop window input box.
the methods we're going to use are-
1. simpledialog.askstring("title", "prompt")
2. simpledialog.askinteger("title", "prompt")
3. simpledialog.askfloat("title", prompt)


code in the video -

from tkinter import *
from tkinter import simpledialog
def get_me():
   s = simpledialog.askfloat("input string", "please enter your name")
   print(s)

root = Tk()


button = Button(root, text="popup", command=get_me)
button.pack()

root.geometry("300x300")
root.mainloop()

-------------------------------------------


so i am sure your queries like -
- how we can take input through pop up window in tkinter?
- take integer from pop up windows?
- how to take input from messagebox in tkinter?
- take integer from messagebox in tkinter?
- take string from messagebox in tkinter?
- how to take float value from messagebox in tkinter?
- how to take input from the popup box?

have been solved.

if you've any problem related to this video, then please let us know in comment box. we'll reply as soon as possible.

Thanks.

you can contact us on-

facebook - Facebook: programmingcage
email - [email protected]
6 سال پیش در تاریخ 1397/05/13 منتشر شده است.
29,019 بـار بازدید شده
... بیشتر