- lb = wx.CheckListBox(self, 60, (80, 50), (80, 120), sampleList)
- self.Bind(wx.EVT_LISTBOX, self.EvtListBox, id=60)
- self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, id=60)
+ lb = wx.CheckListBox(self, -1, (80, 50), (80, 120), sampleList)
+ self.Bind(wx.EVT_LISTBOX, self.EvtListBox, lb)
+ self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, lb)