Python GUI Tutorial - 36 - input through popup window

Published: 04 August 2018
on channel: Tech-Gram Academy
29,164
210

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 -   / programmingcage  
email - techgramacademy@gmail.com


On this page of the site you can watch the video online Python GUI Tutorial - 36 - input through popup window with a duration of hours minute second in good quality, which was uploaded by the user Tech-Gram Academy 04 August 2018, share the link with friends and acquaintances, this video has already been watched 29,164 times on youtube and it was liked by 210 viewers. Enjoy your viewing!