from Tkinter import *
root = Tk()
Austria = StringVar()
label = Label(root, textvariable = Austria)
Austria.set("Austria")
label.pack(side = LEFT)
Cap_Austria = Entry(root)
Cap_Austria.pack(side = RIGHT)
root.mainloop()
I am making an EU quiz but this time it is graphical. I would like to make the entry in the entry box a variable so that I can do something along the lines of:
if entry_string_austria == Vienna:
#It's correct
I have researched the get() function at the sites below but I don't understand most of the documentation.
http://mail.python.org/pipermail/tkinter-discuss/2008-June/001447.html http://effbot.org/tkinterbook/text.htm
Another stackoverflow question which is very similar but I still don't understand
http://mail.python.org/pipermail/tutor/2005-February/035669.html http://bytes.com/topic/python/answers/761497-using-get-entry-tkinter