浏览代码

fix deprecated wx.NewId() (#150)

* fix deprecated wx.NewId(), replaced by wx.NewIdRef()
Markus Neteler 5 年之前
父节点
当前提交
df7437b492
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,
             flag=wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT,
             border=30)
             border=30)
         # abort key bindings
         # abort key bindings
-        abortId = wx.NewId()
+        abortId = wx.NewIdRef()
         self.Bind(wx.EVT_MENU, self.OnAbort, id=abortId)
         self.Bind(wx.EVT_MENU, self.OnAbort, id=abortId)
         accelTableList.append((wx.ACCEL_CTRL, ord('S'), abortId))
         accelTableList.append((wx.ACCEL_CTRL, ord('S'), abortId))
         # set accelerator table
         # set accelerator table