diff --git a/gui/wxpython/gui_core/forms.py b/gui/wxpython/gui_core/forms.py index 878df3e3993..b967ecc3150 100644 --- a/gui/wxpython/gui_core/forms.py +++ b/gui/wxpython/gui_core/forms.py @@ -658,7 +658,7 @@ def __init__(self, parent, giface, task_description, id=wx.ID_ANY, flag=wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT, border=30) # abort key bindings - abortId = wx.NewId() + abortId = wx.Window.NewControlId() self.Bind(wx.EVT_MENU, self.OnAbort, id=abortId) accelTableList.append((wx.ACCEL_CTRL, ord('S'), abortId)) # set accelerator table