mailr20260 - /trunk/gui/__init__.py


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

Header


Content

Posted by edward on July 09, 2013 - 11:35:
Author: bugman
Date: Tue Jul  9 11:35:34 2013
New Revision: 20260

URL: http://svn.gna.org/viewcvs/relax?rev=20260&view=rev
Log:
Fix for the relax GUI splash screen.

On certain systems, the GUI was failing due to the splash screen.  It is now 
shown after the main
wxPython window has been created.


Modified:
    trunk/gui/__init__.py

Modified: trunk/gui/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/__init__.py?rev=20260&r1=20259&r2=20260&view=diff
==============================================================================
--- trunk/gui/__init__.py (original)
+++ trunk/gui/__init__.py Tue Jul  9 11:35:34 2013
@@ -93,9 +93,6 @@
     def OnInit(self):
         """Build the application, showing a splash screen first."""
 
-        # Show the splash screen.
-        self.show_splash()
-
         # Import here to break a circular import which is killing Epydoc!
         from gui import relax_gui
 
@@ -113,6 +110,9 @@
             # Show it.
             self.gui.Show()
 
+        # Show the splash screen.
+        self.show_splash()
+
         # All is good!
         return True
 
@@ -127,4 +127,4 @@
         timeout = 2500
 
         # The splash screen.
-        screen = wx.SplashScreen(bmp, wx.SPLASH_CENTRE_ON_SCREEN | 
wx.SPLASH_TIMEOUT, timeout, None, -1)
+        screen = wx.SplashScreen(bmp, wx.SPLASH_CENTRE_ON_PARENT | 
wx.SPLASH_TIMEOUT, timeout, None, -1)




Related Messages


Powered by MHonArc, Updated Tue Jul 09 11:40:03 2013