Changeset 2709
- Timestamp:
- Feb 16, 2017 3:37:06 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrls.py
r2684 r2709 1338 1338 } 1339 1339 options.update(kw) 1340 self.ChoiceList = ChoiceList #list of choices (list of str values)1340 self.ChoiceList = ['%4d) %s'%(i,item) for i,item in enumerate(ChoiceList)] # numbered list of choices (list of str values) 1341 1341 self.Selections = len(self.ChoiceList) * [False,] # selection status for each choice (list of bools) 1342 1342 self.filterlist = range(len(self.ChoiceList)) # list of the choice numbers that have been filtered (list of int indices) … … 1370 1370 self.settingRange = False 1371 1371 self.rangeFirst = None 1372 self.clb = wx.CheckListBox(self, wx.ID_ANY, (30,30), wx.DefaultSize, ChoiceList)1372 self.clb = wx.CheckListBox(self, wx.ID_ANY, (30,30), wx.DefaultSize, self.ChoiceList) 1373 1373 self.clb.Bind(wx.EVT_CHECKLISTBOX,self.OnCheck) 1374 1374 if monoFont:
Note: See TracChangeset
for help on using the changeset viewer.