[wxPython-users] Statusbar and button height - Mac
Robin Dunn
robin at alldunn.com
Thu Jun 21 15:03:02 PDT 2007
DomDom wrote:
> Hello,
>
> I want to put a button on a statusbar, so I used the
> EnhancedStatusbar from Andrea.By the way, thanks to
> Andrea and others for sharing their knowledge and work.
>
> Unfortunately, while it is great on Windows, it is difficult
> to use under Mac,because the statusbar height cannot be
> changed on Mac (see
> http://article.gmane.org/gmane.comp.python.wxpython/29320)
>
> Consequently, after the creation of the button, I tried to
> reduce its size using:
>
> button.SetMinSize((50,5))
> button.Layout()
>
> which does nothing and also by putting (after I have added
> the button to the sizer):
>
> Sizer.SetItemMinSize(button,50,5)
>
> At the end, the result is worse than before (the button seems
> to go a little bit down on tha statusbar).
Mac buttons also can't change their height. You might want to try using
a bitmap button instead because it's height can change. Or perhaps the
wx.lib.buttons.ThemedGenButton would be a good choice.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list