Merge branch 'more-windowidref' into wxPy-4.0.x

(cherry picked from commit ada7b2fc51)
This commit is contained in:
Robin Dunn
2018-06-25 19:10:56 -07:00
parent 28bdb22c89
commit 705aa63d75
58 changed files with 337 additions and 307 deletions

View File

@@ -414,10 +414,10 @@ if __name__ == "__main__":
labelText = "Simple dir browse button",
style = wx.SUNKEN_BORDER|wx.CLIP_CHILDREN)
innerbox.Add( control, 0, wx.EXPAND)
ID = wx.Window.NewControlId()
ID = wx.NewIdRef()
innerbox.Add( wx.Button( panel, ID,"Change Label", ), 1, wx.EXPAND)
self.Bind(wx.EVT_BUTTON, self.OnChangeLabel , id=ID)
ID = wx.Window.NewControlId()
ID = wx.NewIdRef()
innerbox.Add( wx.Button( panel, ID,"Change Value", ), 1, wx.EXPAND)
self.Bind(wx.EVT_BUTTON, self.OnChangeValue, id=ID )
panel.SetAutoLayout(True)