mailr15705 - /1.3/gui/relax_gui.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:31:
Author: bugman
Date: Fri Apr 13 16:31:23 2012
New Revision: 15705

URL: http://svn.gna.org/viewcvs/relax?rev=15705&view=rev
Log:
Bug fix for Mac OS X - the main window is no longer started maximised.

This was reported by Jack Howarth at 
https://mail.gna.org/public/relax-users/2012-03/msg00053.html
(Message-id: <20120326161412.GA30924@xxxxxxxxxxxxxxxx>).  The thread 
continues at
https://mail.gna.org/public/relax-users/2012-04/msg00003.html (Message-id:
<CAED9pY9uuVyYSBP+9E2yPE7AydnP=BK6JBsmWw61gqo5zj+rzw@xxxxxxxxxxxxxx>).

This maximisation is a problem for certain, though not all, Mac OS X systems.


Modified:
    1.3/gui/relax_gui.py

Modified: 1.3/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=15705&r1=15704&r2=15705&view=diff
==============================================================================
--- 1.3/gui/relax_gui.py (original)
+++ 1.3/gui/relax_gui.py Fri Apr 13 16:31:23 2012
@@ -101,14 +101,14 @@
 
         # The main window style.
         style = wx.DEFAULT_FRAME_STYLE
-        if not status.debug:
+        if not status.debug and status.wx_info["os"] != 'darwin':
             style = style | wx.MAXIMIZE
 
         # Execute the base class __init__ method.
         super(Main, self).__init__(parent=parent, id=id, title=title, 
style=style)
 
         # 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 some standard interface-wide fonts.




Related Messages


Powered by MHonArc, Updated Fri Apr 13 16:40:01 2012