mailr14613 - /1.3/gui/__init__.py


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

Header


Content

Posted by edward on September 08, 2011 - 16:54:
Author: bugman
Date: Thu Sep  8 16:54:42 2011
New Revision: 14613

URL: http://svn.gna.org/viewcvs/relax?rev=14613&view=rev
Log:
The GUI Main instance is now stored in the wx.App as self.gui.

This will allow access to the GUI class via wx.GetApp() calls, avoiding the 
need to pass the
instance around.


Modified:
    1.3/gui/__init__.py

Modified: 1.3/gui/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/__init__.py?rev=14613&r1=14612&r2=14613&view=diff
==============================================================================
--- 1.3/gui/__init__.py (original)
+++ 1.3/gui/__init__.py Thu Sep  8 16:54:42 2011
@@ -98,10 +98,10 @@
         self.show_splash()
 
         # Build the GUI.
-        main = Main(parent=None, id=-1, title="", script=self.script)
+        self.gui = Main(parent=None, id=-1, title="", script=self.script)
 
         # Make it the main application component.
-        self.SetTopWindow(main)
+        self.SetTopWindow(self.gui)
 
         # Only show the GUI if requested.
         if status.show_gui:
@@ -109,7 +109,7 @@
             sleep(1)
 
             # Show it.
-            main.Show()
+            self.gui.Show()
 
         # All is good!
         return True




Related Messages


Powered by MHonArc, Updated Thu Sep 08 17:00:02 2011