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.


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to