[Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread Alexnb
I have an app that has a base frame, and some other frames inside of that base frame. My question is if there is some way to clear out the base frame. Meaning leaving an empty baseframe. See I have a function that pulls up frames inside that base frame. The problem comes when I hit a button(this b

Re: [Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread John McMonagle
Alexnb wrote: > I have an app that has a base frame, and some other frames inside of that > base frame. My question is if there is some way to clear out the base frame. > Meaning leaving an empty baseframe. See I have a function that pulls up > frames inside that base frame. The problem comes when

Re: [Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread Alexnb
Haha!, Brilliant, worked perfectly! Thank you for the help! John McMonagle-3 wrote: > > Alexnb wrote: >> I have an app that has a base frame, and some other frames inside of that >> base frame. My question is if there is some way to clear out the base >> frame. >> Meaning leaving an empty base

Re: [Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread Michael O'Donnell
Hi Alex, John, No need to collect a list of widgets to delete. Use pack_slaves() to find the widgets packed in the the frame, and then kill each of these: for wgt in self.mainContainer.pack_slaves(): wgt.destroy() All widgets within these widgets will also be destroyed. Mick On Wed, Jul