Changeset 2709


Ignore:
Timestamp:
Feb 16, 2017 3:37:06 PM (5 years ago)
Author:
vondreele
Message:

provide numbering for self.ChoiceList? in G2MultiChoiceDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrls.py

    r2684 r2709  
    13381338                   }
    13391339        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)
    13411341        self.Selections = len(self.ChoiceList) * [False,] # selection status for each choice (list of bools)
    13421342        self.filterlist = range(len(self.ChoiceList)) # list of the choice numbers that have been filtered (list of int indices)
     
    13701370        self.settingRange = False
    13711371        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)
    13731373        self.clb.Bind(wx.EVT_CHECKLISTBOX,self.OnCheck)
    13741374        if monoFont:
Note: See TracChangeset for help on using the changeset viewer.