hello, I am having trouble using sizers withing a staticbox control. I attached an example, and I can’t seem to assign a sizer the static box and put controls in it. How can I do this? thanks.
Jeff
junk.py (2.56 KB)
hello, I am having trouble using sizers withing a staticbox control. I attached an example, and I can’t seem to assign a sizer the static box and put controls in it. How can I do this? thanks.
Jeff
junk.py (2.56 KB)
Jeff Peery wrote:
hello, I am having trouble using sizers withing a staticbox control. I attached an example, and I can't seem to assign a sizer the static box and put controls in it. How can I do this? thanks.
Because of limitations on some platforms the static box can not have child widgets. For this reason the wx.StaticBoxSizer was created. It allows you to easily position controls so they appear to be within the static box, when in fact they are actually siblings. just create a static box, and the controls, and then create a wx.StaticBoxSizer and add the other controls to it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!