BeremizIDE.py
branchpython3
changeset 3766 f99def63cdd8
parent 3758 bc71b19b45ff
child 3789 8def429216ca
--- a/BeremizIDE.py	Fri Oct 28 19:39:17 2022 +0800
+++ b/BeremizIDE.py	Fri Oct 28 20:04:12 2022 +0800
@@ -230,7 +230,7 @@
             self.YieldLock.release()
 
 
-ID_FILEMENURECENTPROJECTS = wx.NewId()
+ID_FILEMENURECENTPROJECTS = wx.NewIdRef()
 
 
 class Beremiz(IDEFrame, LocalRuntimeMixin):
@@ -349,7 +349,7 @@
 
         self.EditMenuSize = self.EditMenu.GetMenuItemCount()
 
-        inspectorID = wx.NewId()
+        inspectorID = wx.NewIdRef()
         self.Bind(wx.EVT_MENU, self.OnOpenWidgetInspector, id=inspectorID)
         accels = [wx.AcceleratorEntry(wx.ACCEL_CTRL | wx.ACCEL_ALT, ord('I'), inspectorID)]
 
@@ -374,7 +374,7 @@
                             # itself calling wx.Yield
                             wx.CallLater(50, OnMethod, evt)
                 return OnMethod
-            newid = wx.NewId()
+            newid = wx.NewIdRef()
             self.Bind(wx.EVT_MENU, OnMethodGen(self, method), id=newid)
             accels += [wx.AcceleratorEntry(wx.ACCEL_NORMAL, shortcut, newid)]