mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate
This commit is contained in:
@@ -245,7 +245,7 @@ check the source for this sample to see how to implement them.
|
||||
pos += 1
|
||||
|
||||
# now insert the new item
|
||||
ID = wx.NewId()
|
||||
ID = wx.Window.NewControlId()
|
||||
item = wx.MenuItem(menu, ID, "NewItem " + str(ID))
|
||||
menu.InsertItem(pos, item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user