0
Q:

text variable tkinter

#set a variable and assign it to data type
v = StringVar()

#put that variable as the textvariable value
e = Entry(master, textvariable=v)

#then pack it
e.pack()

#to asign a value to that variable
v.set("a default value")

#to see the value
s = v.get()
print(s)
0

New to Communities?

Join the community