SyntaxFix
Write A Post
Hire A Developer
Questions
You could also use a StringVar variable, even if it's not strictly necessary:
StringVar
v = StringVar() e = Entry(master, textvariable=v) e.pack() v.set("a default value") s = v.get()
For more information, see this page on effbot.org.