mailr15707 - /1.3/gui/spin_viewer/frame.py


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

Header


Content

Posted by edward on April 13, 2012 - 16:44:
Author: bugman
Date: Fri Apr 13 16:44:37 2012
New Revision: 15707

URL: http://svn.gna.org/viewcvs/relax?rev=15707&view=rev
Log:
The maximize calls for the spin viewer window are now turned off for Mac OS X 
systems.

This is to fix certain Mac systems when the wxPython install is compiled for 
wxGTK.


Modified:
    1.3/gui/spin_viewer/frame.py

Modified: 1.3/gui/spin_viewer/frame.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/spin_viewer/frame.py?rev=15707&r1=15706&r2=15707&view=diff
==============================================================================
--- 1.3/gui/spin_viewer/frame.py (original)
+++ 1.3/gui/spin_viewer/frame.py Fri Apr 13 16:44:37 2012
@@ -53,11 +53,13 @@
         self.gui = kwds.pop('parent')
 
         # Create GUI elements
-        kwds["style"] = wx.DEFAULT_FRAME_STYLE | wx.MAXIMIZE
+        kwds["style"] = wx.DEFAULT_FRAME_STYLE
+        if not status.debug and status.wx_info["os"] != 'darwin':
+            kwds["style"] = kwds["style"] | wx.MAXIMIZE
         wx.Frame.__init__(self, *args, **kwds)
 
         # Force the main window to start maximised (needed for MS Windows).
-        if not status.debug:
+        if not status.debug and status.wx_info["os"] != 'darwin':
             self.Maximize()
 
         # Set up the window icon.




Related Messages


Powered by MHonArc, Updated Fri Apr 13 18:20:01 2012