- wxFrame.__init__(self, parent, id, title, wxPoint(100, 100), wxSize(160, 100))
- self.Connect(-1, -1, wxEVT_MOVE, self.OnMove)
+ # First, call the base class' __init__ method to create the frame
+ wxFrame.__init__(self, parent, id, title,
+ wxPoint(100, 100), wxSize(160, 100))
+
+ # Associate some events with methods of this class
+ EVT_SIZE(self, self.OnSize)
+ EVT_MOVE(self, self.OnMove)
+