-        wxBitmapButton(self, 30, bmp, wxPoint(160, 20),
-                       wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10))
-        EVT_BUTTON(self, 30, self.OnClick)
+        wx.BitmapButton(self, 30, bmp, (160, 20),
+                       (bmp.GetWidth()+10, bmp.GetHeight()+10))
+        self.Bind(wx.EVT_BUTTON, self.OnClick, id=30)