[wxPython-users] bitmapbutton transparency

Christopher Barker Chris.Barker at noaa.gov
Thu Jan 25 09:08:11 PST 2007


Philippe C. Martin wrote:
> Well the axe has fallen and this is becoming a feature request ... in the 
> meantime I'll have to handle things by hand:

Probably so.

> The request from the customer is basically:
> 1) transparency aware bitmap buttons under Linux
> 2) being able to pass the on, over, pressed, disabled bitmaps to the button

The design philosophy of wx is to get as native a look and feel as 
possible, and this is achieved by using native widgets when possible.

In your case, you don't want the native look, so you're going to be 
fighting with wx. I don't know if another toolkit would work better for 
you, as wx is the only one I have any real experience with (and I WANT 
native look and feel!).

However, for the button issue you are dealing with at the moment, it 
really wouldn't be very hard to make your own button class that looks 
and acts just like you want it to. I'd stop fighting with wx.Button, and 
just do that.

wx.lib.buttons.py may be most of what you need already.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list