Changeset 75906a1 in sasview for src/sas/qtgui/Plotting/Binder.py


Ignore:
Timestamp:
Oct 26, 2018 6:39:39 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9d23e4c, 722b7d6
Parents:
aed159f
Message:

More fixes from PK's CR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Binder.py

    rcee5c78 r75906a1  
    233233        """ 
    234234        # TODO: sort by zorder of axes then by zorder within axes 
    235         #self._artists.sort(cmp=lambda x, y: cmp(y.zorder, x.zorder)) 
    236         #self._artists.sort(cmp=lambda x, y: y.zorder.__gt__(x.zorder)) 
    237235        found = Selection() 
     236        self._artists.sort(key=lambda x: x.zorder, reverse=True) 
    238237        for artist in self._artists: 
    239238            # TODO: should contains() return false if invisible? 
Note: See TracChangeset for help on using the changeset viewer.