bitmapbutton transparency

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

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

Regards,

Philippe

···

--
_________________________
Philippe C. Martin
www.snakecard.com
_________________________

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@noaa.gov

Yes I got it done ... and it's working OK except for a fliker under
windows ... which can be fixed I'm sure and does not matter much at this
stage as the target is *nix ... I just do not like to reinvent the wheel if I
can avoid it ... lazy :wink:

Philippe

···

On Thursday 25 January 2007 18:08, Christopher Barker wrote:

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

--
_________________________
Philippe C. Martin
www.snakecard.com
_________________________