def CreateApplication(self):
if os.path.exists("BEREMIZ_DEBUG"):
__builtin__.__dict__["BMZ_DBG"] = True
else:
__builtin__.__dict__["BMZ_DBG"] = False
global wx
import wx
if wx.VERSION >= (3, 0, 0):
self.app = wx.App(redirect=BMZ_DBG)
else:
self.app = wx.PySimpleApp(redirect=BMZ_DBG)
self.app.SetAppName('beremiz')
if wx.VERSION < (3, 0, 0):
wx.InitAllImageHandlers()
self.ShowSplashScreen()
self.BackgroundInitialization()
self.app.MainLoop()
评论列表
文章目录