equal
deleted
inserted
replaced
128 self.InitI18n() |
128 self.InitI18n() |
129 self.CheckUpdates() |
129 self.CheckUpdates() |
130 self.LoadExtensions() |
130 self.LoadExtensions() |
131 self.ImportModules() |
131 self.ImportModules() |
132 self.InstallExceptionHandler() |
132 self.InstallExceptionHandler() |
133 self.ShowUI() |
|
134 |
133 |
135 def InitI18n(self): |
134 def InitI18n(self): |
136 from util.misc import InstallLocalRessources |
135 from util.misc import InstallLocalRessources |
137 InstallLocalRessources(self.app_dir) |
136 InstallLocalRessources(self.app_dir) |
138 |
137 |
170 updateinfoThread.start() |
169 updateinfoThread.start() |
171 updateinfoThread.join(2) |
170 updateinfoThread.join(2) |
172 self.splash.SetText(text=self.updateinfo) |
171 self.splash.SetText(text=self.updateinfo) |
173 |
172 |
174 def ImportModules(self): |
173 def ImportModules(self): |
175 global BeremizIDE |
|
176 import BeremizIDE |
174 import BeremizIDE |
|
175 self.frame_class = BeremizIDE.Beremiz |
177 |
176 |
178 def InstallExceptionHandler(self): |
177 def InstallExceptionHandler(self): |
179 import version |
178 import version |
180 import util.ExceptionHandler |
179 import util.ExceptionHandler |
181 util.ExceptionHandler.AddExceptHook(version.app_version) |
180 util.ExceptionHandler.AddExceptHook(version.app_version) |
182 |
181 |
|
182 def CreateUI(self,**kwargs): |
|
183 self.frame = self.frame_class(None, self.projectOpen, self.buildpath, **kwargs) |
|
184 |
183 def ShowUI(self): |
185 def ShowUI(self): |
184 import BeremizIDE |
|
185 self.frame = BeremizIDE.Beremiz(None, self.projectOpen, self.buildpath) |
|
186 if self.splash: |
186 if self.splash: |
187 self.splash.Close() |
187 self.splash.Close() |
188 self.frame.Show() |
188 self.frame.Show() |
189 |
189 |
190 def PreStart(self): |
190 def PreStart(self): |
194 self.BackgroundInitialization() |
194 self.BackgroundInitialization() |
195 |
195 |
196 def MainLoop(self): |
196 def MainLoop(self): |
197 self.app.MainLoop() |
197 self.app.MainLoop() |
198 |
198 |
199 def Start(self): |
199 def Start(self,**kwargs): |
200 self.PreStart() |
200 self.PreStart() |
|
201 self.CreateUI(**kwargs) |
|
202 self.ShowUI() |
201 self.MainLoop() |
203 self.MainLoop() |
202 |
204 |
203 |
205 |
204 if __name__ == '__main__': |
206 if __name__ == '__main__': |
205 beremiz = BeremizIDELauncher() |
207 beremiz = BeremizIDELauncher() |