equal
deleted
inserted
replaced
46 self.projectOpen = None |
46 self.projectOpen = None |
47 self.buildpath = None |
47 self.buildpath = None |
48 self.splash = None |
48 self.splash = None |
49 self.splashPath = self.Bpath("images", "splash.png") |
49 self.splashPath = self.Bpath("images", "splash.png") |
50 self.modules= ["BeremizIDE"] |
50 self.modules= ["BeremizIDE"] |
|
51 self.debug = os.path.exists("BEREMIZ_DEBUG") |
51 |
52 |
52 def Bpath(self, *args): |
53 def Bpath(self, *args): |
53 return os.path.join(self.app_dir, *args) |
54 return os.path.join(self.app_dir, *args) |
54 |
55 |
55 def ShowSplashScreen(self): |
56 def ShowSplashScreen(self): |
112 elif len(args) == 2: |
113 elif len(args) == 2: |
113 self.projectOpen = args[0] |
114 self.projectOpen = args[0] |
114 self.buildpath = args[1] |
115 self.buildpath = args[1] |
115 |
116 |
116 def CreateApplication(self): |
117 def CreateApplication(self): |
117 BMZ_DBG = os.path.exists("BEREMIZ_DEBUG") |
|
118 |
|
119 if wx.VERSION >= (3, 0, 0): |
118 if wx.VERSION >= (3, 0, 0): |
120 self.app = wx.App(redirect=BMZ_DBG) |
119 self.app = wx.App(redirect=self.debug) |
121 else: |
120 else: |
122 self.app = wx.PySimpleApp(redirect=BMZ_DBG) |
121 self.app = wx.PySimpleApp(redirect=self.debug) |
123 |
122 |
124 self.app.SetAppName('beremiz') |
123 self.app.SetAppName('beremiz') |
125 if wx.VERSION < (3, 0, 0): |
124 if wx.VERSION < (3, 0, 0): |
126 wx.InitAllImageHandlers() |
125 wx.InitAllImageHandlers() |
127 |
126 |