No need to call wx.InitAllImageHandlers any more, it is called when wx is first imported.

This commit is contained in:
Robin Dunn
2020-02-26 09:56:08 -08:00
parent 81001efb9b
commit 91b4c8077e
2 changed files with 1 additions and 3 deletions

View File

@@ -220,7 +220,6 @@ class DemoApp(wx.App):
"""
def OnInit(self):
wx.InitAllImageHandlers()
frame = DrawFrame(None, wx.ID_ANY,
title = "Plotting Test",
size = (700,400) )

View File

@@ -210,7 +210,6 @@ class PolyEditor(wx.App):
"""
def OnInit(self):
wx.InitAllImageHandlers()
frame = DrawFrame(None,
-1,
"FloatCanvas Demo App",
@@ -224,7 +223,7 @@ class PolyEditor(wx.App):
frame.Setup()
return True
PolyEditor(0).MainLoop()# put in True if you want output to go to it's own window.
PolyEditor().MainLoop()