Changeset e4d790f in sasview for sansguiframe/src
- Timestamp:
- Oct 21, 2011 11:29:48 AM (13 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:
- 81a7b6c
- Parents:
- 04b744d
- Location:
- sansguiframe/src/sans/guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_panel.py
r5cf5f51 re4d790f 842 842 """ 843 843 selection = self.perspective_cbox.GetSelection() 844 845 844 if self.perspective_cbox.GetValue() != 'None': 846 845 perspective = self.perspective_cbox.GetClientData(selection) 847 846 perspective.on_perspective(event=None) 848 flag = perspective.get_batch_capable() 849 flag_on = perspective.batch_on 850 if flag: 851 self.rb_single_mode.SetValue(not flag_on) 852 self.rb_batch_mode.SetValue(flag_on) 853 else: 854 self.rb_single_mode.SetValue(True) 855 self.rb_batch_mode.SetValue(False) 856 self.rb_single_mode.Enable(flag) 857 self.rb_batch_mode.Enable(flag) 847 self.parent.check_multimode(perspective=perspective) 858 848 859 849 def _on_plot_selection(self, event=None): -
sansguiframe/src/sans/guiframe/gui_manager.py
r04b744d re4d790f 2572 2572 return is_data1d and not is_data2d and not is_theory and not is_state_data 2573 2573 2574 def check_multimode(self, perspective=None): 2575 """ 2576 Check the perspective have batch mode capablitity 2577 """ 2578 if perspective == None or self._data_panel == None: 2579 return 2580 flag = perspective.get_batch_capable() 2581 flag_on = perspective.batch_on 2582 if flag: 2583 self._data_panel.rb_single_mode.SetValue(not flag_on) 2584 self._data_panel.rb_batch_mode.SetValue(flag_on) 2585 else: 2586 self._data_panel.rb_single_mode.SetValue(True) 2587 self._data_panel.rb_batch_mode.SetValue(False) 2588 self._data_panel.rb_single_mode.Enable(flag) 2589 self._data_panel.rb_batch_mode.Enable(flag) 2590 2591 2592 2574 2593 def enable_edit_menu(self): 2575 2594 """ -
sansguiframe/src/sans/guiframe/plugin_base.py
r7360816 re4d790f 212 212 213 213 """ 214 self.parent.check_multimode(self) 214 215 self.parent.set_current_perspective(self) 215 216 self.parent.set_perspective(self.perspective) 217 216 218 217 219 def set_batch_selection(self, flag):
Note: See TracChangeset
for help on using the changeset viewer.