mailr26309 - /trunk/gui/misc.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 17, 2014 - 16:55:
Author: bugman
Date: Fri Oct 17 16:55:44 2014
New Revision: 26309

URL: http://svn.gna.org/viewcvs/relax?rev=26309&view=rev
Log:
The gui.misc.bitmap_setup() function can now be used outside of the GUI.


Modified:
    trunk/gui/misc.py

Modified: trunk/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/misc.py?rev=26309&r1=26308&r2=26309&view=diff
==============================================================================
--- trunk/gui/misc.py   (original)
+++ trunk/gui/misc.py   Fri Oct 17 16:55:44 2014
@@ -128,7 +128,7 @@
     bitmap = wx.Bitmap(path, wx.BITMAP_TYPE_ANY)
 
     # 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":
+    if bitmap.HasAlpha() and not (hasattr(status, 'wx_info') and 
status.wx_info["os"] == "darwin"):
         bitmap.SetMaskColour(wx.Colour(alpha=wx.ALPHA_OPAQUE))
 
     # Return the bitmap object.




Related Messages


Powered by MHonArc, Updated Fri Oct 17 20:40:02 2014