Skip to content

Commit

Permalink
fix deprecated wx.NewId()
Browse files Browse the repository at this point in the history
wx.NewId() is superceeded by wx.NewControlId()

```
v.import --ui
/home/mneteler/software/grass_master/dist.x86_64-pc-linux-gnu/gui/wxpython/gui_core/forms.py:661: DeprecationWarning: NewId() is deprecated
  abortId = wx.NewId()
```
  • Loading branch information
neteler committed Oct 8, 2019
1 parent 6232589 commit d674a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/gui_core/forms.py
Expand Up @@ -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
Expand Down

0 comments on commit d674a38

Please sign in to comment.