- btn = wxButton(self, wxNewId(), "<-- Previous Page")
- EVT_BUTTON(self, btn.GetId(), self.OnPrevPageButton)
- btnSizer.Add(btn, 1, wxEXPAND|wxALL, 5)
+ btn = wx.Button(self, wx.NewId(), "<-- Previous Page")
+ self.Bind(wx.EVT_BUTTON, self.OnPrevPageButton, id=btn.GetId())
+ btnSizer.Add(btn, proportion=1, flag=wx.EXPAND|wx.ALL, border=5)