mailr26307 - /trunk/gui/fonts.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:13:
Author: bugman
Date: Fri Oct 17 16:13:04 2014
New Revision: 26307

URL: http://svn.gna.org/viewcvs/relax?rev=26307&view=rev
Log:
Fix for the gui.fonts module to allow it to be used outside of the GUI.


Modified:
    trunk/gui/fonts.py

Modified: trunk/gui/fonts.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/fonts.py?rev=26307&r1=26306&r2=26307&view=diff
==============================================================================
--- trunk/gui/fonts.py  (original)
+++ trunk/gui/fonts.py  Fri Oct 17 16:13:04 2014
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2011-2013 Edward d'Auvergne                                  
 #
+# Copyright (C) 2011-2014 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax (http://www.nmr-relax.com).         
 #
 #                                                                            
 #
@@ -37,7 +37,7 @@
 
         # Operating system dependent font scaling.
         scale = 0
-        if status.wx_info["os"] == 'darwin':
+        if hasattr(status, 'wx_info') and status.wx_info["os"] == 'darwin':
             scale = 2
 
         # The fonts.




Related Messages


Powered by MHonArc, Updated Fri Oct 17 17:00:02 2014