[wxPython-users] toolbar sizers???
Robin Dunn
robin at alldunn.com
Tue Apr 3 10:58:50 PDT 2007
Jeff Peery wrote:
> hello,
> I've been putting some controls in a toolbar's boxsizer and the sizer
> isn't working like I expect it to work... for example things don't
> expand if I specify a sizer item to EXPAND or if I set the proportion
> for example. Do sizers act differently in toolbars or should I expect
> the same behavior as if I were using sizers in a panel for example?
Toolbars expect to do the management of the size and placement of the
controls themselves, and so don't do anything to do normal autolayout
(like calling GetSizer().Layout().) This is necessary because the
normal toolbar buttons are usually not separate controls, but just part
of the toolbar itself, so making that work with a sizer would be tricky,
or maybe not even possible depending on how the native toolbar works.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list