[wxPython-users] boxsizers problem
Robin Dunn
robin at alldunn.com
Mon Sep 11 12:38:00 PDT 2006
Phil Mayes wrote:
> Instead of adding the windows at
> vertical_sizer.Add(self.Subwindow, 1, wx.EXPAND)
> vertical_sizer.Add(self.Nextsubwindow, 1, wx.EXPAND)
> add the sizer that holds them instead.
No, don't do this. The sizer that belongs to some window P should only
have items added to it that are children of P, or sizers that also hold
children of P. If you add the sizer that belongs to the child window to
P's sizer then it could result in a rip of the fabric of the universe
and the exotic particles generated in a parallel universe could leak in
and cause all kinds of havoc. ;-)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list