Changeset 3879


Ignore:
Timestamp:
Apr 7, 2019 9:07:37 PM (3 years ago)
Author:
toby
Message:

prepare for wx deprecation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3875 r3879  
    16381638    def _ShowSelections(self):
    16391639        'Show the selection state for displayed items'
    1640         self.clb.SetChecked(
    1641             [i for i in range(len(self.filterlist)) if self.Selections[self.filterlist[i]]]
     1640        if 'phoenix' in wx.version():
     1641            self.clb.SetCheckedItems(
     1642                [i for i in range(len(self.filterlist)) if self.Selections[self.filterlist[i]]]
     1643            ) # Note anything previously checked will be cleared.
     1644        else:
     1645            self.clb.SetChecked(
     1646                [i for i in range(len(self.filterlist)) if self.Selections[self.filterlist[i]]]
    16421647            ) # Note anything previously checked will be cleared.
    16431648           
Note: See TracChangeset for help on using the changeset viewer.