- wxStaticText(self, -1, "This example uses the wxChoice control.",
- wxPoint(15, 10))
+ wx.StaticText(self, -1, "This example uses the wxChoice control.", (15, 10))
+ wx.StaticText(self, -1, "Select one:", (15, 50), (75, 20))
+ self.ch = wx.Choice(self, -1, (80, 50), choices = sampleList)
+ self.Bind(wx.EVT_CHOICE, self.EvtChoice, self.ch)