Alpha channel with toolbar bitmaps

Hi Andrea,

Hello Werner,

Is there an easy way to figure out that I am NOT on XP and then use
ConvertAlphaToMask and on XP (or newer) I leave the alpha channel (as it
is a lot nicer).

You could try a switch like this:

if "__WXMSW__" in wx.Platform:
     # We are on Window$

     import platform

     if platform.release() == "XP":
           do something
     else:
           do something else

That does the trick, now I just have to clean up my image file so it displays nicely on XP and/or 2000 or older.

Thanks
Werner

···

andrea.gavana@agip.it wrote:

HTH.

Andrea.

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Updated Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org