+ 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)
+ self.lb1.SetSelection(3)
+ self.lb1.Append("with data", "This one has data");
+ self.lb1.SetClientData(2, "This one has data");
+
+
+ wx.StaticText(self, -1, "Select many:", (200, 50), (65, 18))
+ self.lb2 = wx.ListBox(self, 70, (280, 50), (80, 120), sampleList, wx.LB_EXTENDED)
+ self.Bind(wx.EVT_LISTBOX, self.EvtMultiListBox, self.lb2)
+ self.lb2.Bind(wx.EVT_RIGHT_UP, self.EvtRightButton)
+ self.lb2.SetSelection(0)