mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate
This commit is contained in:
@@ -72,7 +72,7 @@ to display non-critical information to the user."""
|
||||
|
||||
|
||||
def OnAddButton(self, evt):
|
||||
btnId = wx.NewId()
|
||||
btnId = wx.Window.NewControlId()
|
||||
self.info.AddButton(btnId, "new button")
|
||||
self.info.Bind(wx.EVT_BUTTON, self.OnButtonClicked, id=btnId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user