소스 검색

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: