[wxPython-users] unwanted border around GTK & bitmapbutton
Paul Sijben
sijben at eemvalley.com
Tue Mar 4 13:03:25 PST 2008
Robin Dunn wrote:
> Paul Sijben wrote:
>> I find that on GTK (Ubuntu 7.10, most recent wxPython) my bitmapbuttons
>> get some unwanted borders that aren't there on WinXP. GTK uses those
>> borders to darken the edge on hover.
>>
>> How do I stop this from happening?
>
> Try using the wx.NO_BORDER style.
that works on WinXP but not GTK :-(
>Depending on the active theme that
> may do it for you, although it will probably still try to draw something
> when the mouse moves over the button. If you don't want any effects
> from the theme then you can use the GenBitmapButton class from
> wx.lib.buttons with a wx.NO_BORDER style.
>
>
thanks, will try that tomorrow. Is there a convenient way to use this
from XRC?
Paul
More information about the wxpython-users
mailing list