I am using the below snippet to remove child sizers from a parent sizer.
item = self.rowSizer.GetChildren()[cd]
item.DeleteWindows()
self.rowSizer.Remove(cd)
self.panel1.Layout() #panel1 is a scrolled panel
It works, well enough, except for the fact that the parent sizer (rowSizer) does not shrink (although it grows just fine). I do not know if this is the normal behavior or I'm I overlooking a technique in my newness?
Thanks in advance
Scott
···
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005