Explorar el Código

fix deprecated wx.NewId() (#150)

* fix deprecated wx.NewId(), replaced by wx.NewIdRef()
Markus Neteler hace 5 años
padre
commit
df7437b492
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -658,7 +658,7 @@ class TaskFrame(wx.Frame):
             flag=wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT,
             border=30)
         # abort key bindings
-        abortId = wx.NewId()
+        abortId = wx.NewIdRef()
         self.Bind(wx.EVT_MENU, self.OnAbort, id=abortId)
         accelTableList.append((wx.ACCEL_CTRL, ord('S'), abortId))
         # set accelerator table