Author: bugman Date: Wed Oct 3 01:26:26 2012 New Revision: 17691 URL: http://svn.gna.org/viewcvs/relax?rev=17691&view=rev Log: Bug fix for wxPython 2.9.4.0 - the unsetting of the alpha mask for all bitmap images should now work. The wx.Bitmap.SetMaskColour(None) call does not work, so instead a wx.Colour() instance is passed in instead. Modified: trunk/gui/misc.py Modified: trunk/gui/misc.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/misc.py?rev=17691&r1=17690&r2=17691&view=diff ============================================================================== --- trunk/gui/misc.py (original) +++ trunk/gui/misc.py Wed Oct 3 01:26:26 2012 @@ -130,7 +130,7 @@ # Unset the mask if an alpha mask is detected (only on GNU/Linux and MS Windows). if bitmap.HasAlpha() and status.wx_info["os"] != "darwin": - bitmap.SetMaskColour(None) + bitmap.SetMaskColour(wx.Colour(alpha=wx.ALPHA_OPAQUE)) # Return the bitmap object. return bitmap