- wxStaticText(self, -1, "This example uses the wxListBox control.",
- wxPoint(45, 10))
-
- wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(65, 18))
- self.lb1 = wxListBox(self, 60, wxPoint(80, 50), wxSize(80, 120),
- sampleList, wxLB_SINGLE)
- EVT_LISTBOX(self, 60, self.EvtListBox)
- EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
- EVT_RIGHT_UP(self.lb1, self.EvtRightButton)
+ wx.StaticText(self, -1, "This example uses the wxListBox control.", (45, 10))
+ wx.StaticText(self, -1, "Select one:", (15, 50), (65, 18))
+ self.lb1 = wx.ListBox(self, 60, (80, 50), (80, 120), sampleList, wx.LB_SINGLE)
+ self.Bind(wx.EVT_LISTBOX, self.EvtListBox, self.lb1)
+ self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, self.lb1)
+ self.lb1.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)