瀏覽代碼

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...'))