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
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
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
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