Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75946
| References | <c9b244b6-12ca-485b-96e3-a8bd372d23f5@googlegroups.com> |
|---|---|
| Date | 2014-08-09 14:46 +0200 |
| Subject | Re: Tkinter frame reset |
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12793.1407588364.18130.python-list@python.org> (permalink) |
2014-08-09 2:38 GMT+02:00 Nicholas Cannon <nicholascannon1@gmail.com>:
> Ok so I am working on a little project and I cant seem to solve something with it. I have a label and then a clear button and I want all the numbers in the label to clear when I push the button. This button is on a separate frame to the buttons. I would like to clear the frame and then set all the widgits back to how they were one you first open the app(Label being blank).
...
> --
> https://mail.python.org/mailman/listinfo/python-list
Hi,
I haven't been doing anything more complex for some time now with
tkinter, but could you maybe just associate the appropriate variables,
keep them in a list and change the values in a loop as appropriate -
without recreating the gui?
cf. the basic recipe:
http://effbot.org/tkinterbook/label.htm
v = StringVar()
Label(master, textvariable=v).pack()
v.set("New Text!")
hth,
vbr
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Tkinter frame reset Nicholas Cannon <nicholascannon1@gmail.com> - 2014-08-08 17:38 -0700 Re: Tkinter frame reset Vlastimil Brom <vlastimil.brom@gmail.com> - 2014-08-09 14:46 +0200
csiph-web