Hello everyone, in this video you're going to see how we can work with the Entry in tkinter. Actually we have already know how we can create entries in TKinter. But we didn't fetch the value from that entry yet.
so in this video you're going to see how we can fetch the text inputted in Entry box or TextBox in Python.
example -
from tkinter import *
def click_me():
s1 = s.get()
print(s1)
root = Tk()
s = StringVar()
entry = Entry(root, textvariable=s)
s.set("welcome")
entry.pack()
button = Button(root, text="click",command=click_me)
button.pack()
root.geometry("300x300+120+120")
root.mainloop()
---------------------------------------------------------
i'm sure your queries like -
how to fetch data from the entry in tkinter?
how to get the value from an entry in tkinter?
how to get and set value in entry in tkinter on clicking a button?
how to get the value of text box on clicking a button in tkinter?
fetch entry's text in tkinter?
have been solved.
if you've any problem related with this video, then please let us know in comment box. we'll answer as soon as possible.
Thanks for watching.