瀏覽代碼

wxGUI: avoid printing annoying wx debug message on startup

Anna Petrasova 5 年之前
父節點
當前提交
a5c598adb4
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/wxgui.py

+ 5 - 0
gui/wxpython/wxgui.py

@@ -33,6 +33,11 @@ from core import globalvar
 from core.utils import registerPid, unregisterPid
 
 import wx
+# import adv and html before wx.App is created, otherwise
+# we get annoying "Debug: Adding duplicate image handler for 'Windows bitmap file'"
+# during start up, remove when not needed
+import wx.adv
+import wx.html
 try:
     import wx.lib.agw.advancedsplash as SC
 except ImportError: