Beremiz.py
branchpython3
changeset 3793 9958cf865da0
parent 3752 9f6f46dbe3ae
equal deleted inserted replaced
3792:365f866ee120 3793:9958cf865da0
   102             self.projectOpen = args[0]
   102             self.projectOpen = args[0]
   103             self.buildpath = args[1]
   103             self.buildpath = args[1]
   104 
   104 
   105     def CreateApplication(self):
   105     def CreateApplication(self):
   106 
   106 
   107         BeremizAppType = wx.App if wx.VERSION >= (3, 0, 0) else wx.PySimpleApp
   107         BeremizAppType = wx.App
   108 
   108 
   109         class BeremizApp(BeremizAppType):
   109         class BeremizApp(BeremizAppType):
   110             def OnInit(_self):  # pylint: disable=no-self-argument
   110             def OnInit(_self):  # pylint: disable=no-self-argument
   111                 self.ShowSplashScreen()
   111                 self.ShowSplashScreen()
   112                 return True
   112                 return True
   113 
   113 
   114         self.app = BeremizApp(redirect=self.debug)
   114         self.app = BeremizApp(redirect=self.debug)
   115         self.app.SetAppName('beremiz')
   115         self.app.SetAppName('beremiz')
   116         if wx.VERSION < (3, 0, 0):
       
   117             wx.InitAllImageHandlers()
       
   118 
   116 
   119     def ShowSplashScreen(self):
   117     def ShowSplashScreen(self):
   120         class Splash(AdvancedSplash):
   118         class Splash(AdvancedSplash):
   121             Painted = False
   119             Painted = False
   122 
   120