[wxPython-users] unwanted border around GTK & bitmapbutton

Robin Dunn robin at alldunn.com
Tue Mar 4 12:52:09 PST 2008


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.  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.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list