how best to clear objects from a frame
rantingrick
rantingrick at gmail.com
Sun Aug 1 23:13:55 EDT 2010
On Aug 1, 7:12 pm, Chris Hare <ch... at labr.net> wrote:
> Here is the situation:
>
> I have a window with a bunch of widgets in it. I want to clear the objects in a given frame and recreate them to update them.
You need to check out the "w.update" and "w.update_idletasks" methods
available on all Tkinter widgets. Just FYI: to remove a widget from
view without destroying it use "w.pack_forget" or "w.grid_forget".
However if you are simply trying to refresh a widget use one of the
update methods.
More information about the Python-list
mailing list