Browse Source

wxGUI: avoid printing annoying wx debug message on startup

Anna Petrasova 5 years ago
parent
commit
a5c598adb4
1 changed files with 5 additions and 0 deletions
  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: