Changeset b5e79f7 in sasview


Ignore:
Timestamp:
Mar 16, 2011 8:04:16 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4158af4
Parents:
91d910d
Message:

fix datapanel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r3658717e rb5e79f7  
    181181            return  
    182182        option = self.selection_cbox.GetString(pos) 
    183         for item in self.list_cb_data: 
    184             data_ctrl, _, _ = item 
    185             data_id, data_class = self.tree_ctrl.GetItemPyData(dta_ctrl)  
     183        for item in self.list_cb_data.values(): 
     184            data_ctrl, _, _, _,_, _ = item 
     185            data_id, data_class, _ = self.tree_ctrl.GetItemPyData(data_ctrl)  
    186186            if option == 'Select all Data': 
    187                 self.tree_ctrl.CheckItem(item, True)  
     187                self.tree_ctrl.CheckItem(data_ctrl, True)  
    188188            elif option == 'Unselect all Data': 
    189                 self.tree_ctrl.CheckItem(item, False) 
     189                self.tree_ctrl.CheckItem(data_ctrl, False) 
    190190            elif option == 'Select all Data 1D': 
    191191                if data_class == 'Data1D': 
    192                     self.tree_ctrl.CheckItem(item, True)  
     192                    self.tree_ctrl.CheckItem(data_ctrl, True)  
    193193            elif option == 'Unselect all Data 1D': 
    194194                if data_class == 'Data1D': 
    195                     self.tree_ctrl.CheckItem(item, False)  
     195                    self.tree_ctrl.CheckItem(data_ctrl, False)  
    196196            elif option == 'Select all Data 1D': 
    197197                if data_class == 'Data1D': 
    198                     self.tree_ctrl.CheckItem(item, True)  
     198                    self.tree_ctrl.CheckItem(data_ctrl, True)  
    199199            elif option == 'Select all Data 2D': 
    200200                if data_class == 'Data2D': 
    201                     self.tree_ctrl.CheckItem(item, True)  
     201                    self.tree_ctrl.CheckItem(data_ctrl, True)  
    202202            elif option == 'Unselect all Data 2D': 
    203203                if data_class == 'Data2D': 
    204                     self.tree_ctrl.CheckItem(item, False)  
     204                    self.tree_ctrl.CheckItem(data_ctrl, False)  
    205205                
    206206    def on_set_active_perspective(self, event): 
Note: See TracChangeset for help on using the changeset viewer.