فهرست منبع

Use normal wx.SplashScreen instead of AdvancedSplash on the Mac to avoid errors whenever GUI is started

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51129 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 سال پیش
والد
کامیت
b90e4cfcf0
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      gui/wxpython/wxgui.py

+ 3 - 1
gui/wxpython/wxgui.py

@@ -57,7 +57,9 @@ class GMApp(wx.App):
         introImagePath = os.path.join(globalvar.ETCIMGDIR, "silesia_splash.png")
         introImage     = wx.Image(introImagePath, wx.BITMAP_TYPE_PNG)
         introBmp       = introImage.ConvertToBitmap()
-        if SC:
+        if SC and sys.platform != 'darwin':
+            # AdvancedSplash is buggy on the Mac as of 2.8.12.1 
+            # and raises annoying (though seemingly harmless) errors everytime the GUI is started
             splash = SC.AdvancedSplash(bitmap = introBmp, 
                                        timeout = 2000, parent = None, id = wx.ID_ANY)
             splash.SetText(_('Starting GRASS GUI...'))