equal
deleted
inserted
replaced
228 app = wx.GetApp() |
228 app = wx.GetApp() |
229 app.Yield() |
229 app.Yield() |
230 self.YieldLock.release() |
230 self.YieldLock.release() |
231 |
231 |
232 |
232 |
233 ID_FILEMENURECENTPROJECTS = wx.NewId() |
233 ID_FILEMENURECENTPROJECTS = wx.NewIdRef() |
234 |
234 |
235 |
235 |
236 class Beremiz(IDEFrame, LocalRuntimeMixin): |
236 class Beremiz(IDEFrame, LocalRuntimeMixin): |
237 |
237 |
238 def _init_utils(self): |
238 def _init_utils(self): |
347 def _init_ctrls(self, prnt): |
347 def _init_ctrls(self, prnt): |
348 IDEFrame._init_ctrls(self, prnt) |
348 IDEFrame._init_ctrls(self, prnt) |
349 |
349 |
350 self.EditMenuSize = self.EditMenu.GetMenuItemCount() |
350 self.EditMenuSize = self.EditMenu.GetMenuItemCount() |
351 |
351 |
352 inspectorID = wx.NewId() |
352 inspectorID = wx.NewIdRef() |
353 self.Bind(wx.EVT_MENU, self.OnOpenWidgetInspector, id=inspectorID) |
353 self.Bind(wx.EVT_MENU, self.OnOpenWidgetInspector, id=inspectorID) |
354 accels = [wx.AcceleratorEntry(wx.ACCEL_CTRL | wx.ACCEL_ALT, ord('I'), inspectorID)] |
354 accels = [wx.AcceleratorEntry(wx.ACCEL_CTRL | wx.ACCEL_ALT, ord('I'), inspectorID)] |
355 |
355 |
356 self.methodLock = Lock() |
356 self.methodLock = Lock() |
357 |
357 |
372 # Postpone call if one of method already running |
372 # Postpone call if one of method already running |
373 # can happen because of long method using log, |
373 # can happen because of long method using log, |
374 # itself calling wx.Yield |
374 # itself calling wx.Yield |
375 wx.CallLater(50, OnMethod, evt) |
375 wx.CallLater(50, OnMethod, evt) |
376 return OnMethod |
376 return OnMethod |
377 newid = wx.NewId() |
377 newid = wx.NewIdRef() |
378 self.Bind(wx.EVT_MENU, OnMethodGen(self, method), id=newid) |
378 self.Bind(wx.EVT_MENU, OnMethodGen(self, method), id=newid) |
379 accels += [wx.AcceleratorEntry(wx.ACCEL_NORMAL, shortcut, newid)] |
379 accels += [wx.AcceleratorEntry(wx.ACCEL_NORMAL, shortcut, newid)] |
380 |
380 |
381 self.SetAcceleratorTable(wx.AcceleratorTable(accels)) |
381 self.SetAcceleratorTable(wx.AcceleratorTable(accels)) |
382 |
382 |