Changeset b5e79f7 in sasview
- Timestamp:
- Mar 16, 2011 8:04:16 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
r3658717e rb5e79f7 181 181 return 182 182 option = self.selection_cbox.GetString(pos) 183 for item in self.list_cb_data :184 data_ctrl, _, _ = item185 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) 186 186 if option == 'Select all Data': 187 self.tree_ctrl.CheckItem( item, True)187 self.tree_ctrl.CheckItem(data_ctrl, True) 188 188 elif option == 'Unselect all Data': 189 self.tree_ctrl.CheckItem( item, False)189 self.tree_ctrl.CheckItem(data_ctrl, False) 190 190 elif option == 'Select all Data 1D': 191 191 if data_class == 'Data1D': 192 self.tree_ctrl.CheckItem( item, True)192 self.tree_ctrl.CheckItem(data_ctrl, True) 193 193 elif option == 'Unselect all Data 1D': 194 194 if data_class == 'Data1D': 195 self.tree_ctrl.CheckItem( item, False)195 self.tree_ctrl.CheckItem(data_ctrl, False) 196 196 elif option == 'Select all Data 1D': 197 197 if data_class == 'Data1D': 198 self.tree_ctrl.CheckItem( item, True)198 self.tree_ctrl.CheckItem(data_ctrl, True) 199 199 elif option == 'Select all Data 2D': 200 200 if data_class == 'Data2D': 201 self.tree_ctrl.CheckItem( item, True)201 self.tree_ctrl.CheckItem(data_ctrl, True) 202 202 elif option == 'Unselect all Data 2D': 203 203 if data_class == 'Data2D': 204 self.tree_ctrl.CheckItem( item, False)204 self.tree_ctrl.CheckItem(data_ctrl, False) 205 205 206 206 def on_set_active_perspective(self, event):
Note: See TracChangeset
for help on using the changeset viewer.