Explorar o código

fix deprecated wx.NewId() (#150)

* fix deprecated wx.NewId(), replaced by wx.NewIdRef()
Markus Neteler %!s(int64=5) %!d(string=hai) anos
pai
achega
95c5ecc3fe
Modificáronse 1 ficheiros con 1 adicións e 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