Tkinter Question
Fredrik Lundh
fredrik at pythonware.com
Thu Oct 14 15:55:47 EDT 1999
Burke, Jason <JBurke at lrs.com> wrote:
> I've been pouring over the tutorials for using Tkinter, but I
> can't seem to find an answer to what I think should be a
> simple question.
http://www.pythonware.com/library/tkinter/introduction/entry.htm
=> methods => "get -- Get the current contents of the entry field."
or in other words:
e = Entry(...)
print "current value =>", e.get()
or you can use a StringVar. for radiobuttons and checkbuttons,
using a Tkinter variable (StringVar or IntVar) is the best way. see
code samples on:
http://www.pythonware.com/library/tkinter/introduction/checkbutton.htm
http://www.pythonware.com/library/tkinter/introduction/radiobutton.htm
btw, a new version of the tkinter introduction is in the works. watch
http://www.pythonware.com/people/fredrik/tkintrobook.htm
for details.
</F>
coming soon:
http://www.pythonware.com/people/fredrik/librarybook.htm
More information about the Python-list
mailing list