- wxStaticText(self, -1, "This example uses the wxChoice control.",
- wxPoint(15, 10))
-
- wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 20))
- self.ch = wxChoice(self, 40, (80, 50), (95, 125),
- choices = sampleList)
- EVT_CHOICE(self, 40, self.EvtChoice)
+ 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)