[wxPython-users] how to make a "flat" bitmap button?

Alec Bennett whatyoulookin at yahoo.com
Thu Feb 7 00:18:17 PST 2008


Thanks, this is great. For anyone else who comes down this road, the secret is
style=wx.BORDER_NONE

As in:

mybutton = wx.BitmapButton(panel, bitmap=bmp, style=wx.BORDER_NONE)





--- Andrea Gavana <andrea.gavana at gmail.com> wrote:

> Hi Alec,
> 
> On Feb 7, 2008 12:22 AM, Alec Bennett wrote:
> > I'm surprised this one has been so hard to find in the archives and google, but I can't figure
> out
> > how to make a bitmapbutton with no border....
> >
> > Any hints?
> 
> What about:
> 
> wxPython Demo => Custom Controls => GenericButtons?
> 
> Also, the next release will contain a nice new widget called
> "PlateButton" developed by Cody Precord, so you will have an even
> ampler choice :-D .
> 
> Andrea.
> 
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.alice.it/infinity77/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 





More information about the wxpython-users mailing list