[GRASS-SVN] r64498 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 7 11:07:53 PST 2015


Author: martinl
Date: 2015-02-07 11:07:53 -0800 (Sat, 07 Feb 2015)
New Revision: 64498

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: hide splash screen slighty before wxGUI is shown

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2015-02-07 19:04:38 UTC (rev 64497)
+++ grass/trunk/gui/wxpython/wxgui.py	2015-02-07 19:07:53 UTC (rev 64498)
@@ -69,18 +69,18 @@
         bitmap = wx.Image(name=os.path.join(globalvar.IMGDIR, "splash_screen.png")).ConvertToBitmap()
         wx.SplashScreen.__init__(self, bitmap=bitmap,
                                  splashStyle=wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
-                                 milliseconds=2000, parent=parent)
+                                 milliseconds=1000, parent=parent)
         self.Bind(wx.EVT_CLOSE, self.OnExit)
 
         wx.Yield()
 
     def OnExit(self, event):
-        self.Hide()
-        
         # create and show main frame
         frame = GMFrame(parent = None, id = wx.ID_ANY,
                         workspace = self.workspaceFile)
         self.app.SetTopWindow(frame)
+        
+        self.Hide()
         frame.Show()
         
         event.Skip()  # make sure the default handler runs too



More information about the grass-commit mailing list