Forráskód Böngészése

wxGUI: splash screen cosmetics (use named arguments)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64491 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 éve
szülő
commit
a7a17783de
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      gui/wxpython/wxgui.py

+ 3 - 3
gui/wxpython/wxgui.py

@@ -72,9 +72,9 @@ class GSplashScreen(wx.SplashScreen):
         self.app = app
         
         bitmap = wx.Image(name=os.path.join(globalvar.IMGDIR, "splash_screen.png")).ConvertToBitmap()
-        wx.SplashScreen.__init__(self, bitmap,
-                                 wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
-                                 2000, parent)
+        wx.SplashScreen.__init__(self, bitmap=bitmap,
+                                 splashStyle=wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
+                                 milliseconds=2000, parent=parent)
         self.Bind(wx.EVT_CLOSE, self.OnExit)
 
         wx.Yield()