Changeset d4d78c9 in sasview
- Timestamp:
- Apr 20, 2011 7:39:00 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:
- 2a62d5c
- Parents:
- 1258aa3
- Location:
- invariantview/perspectives/invariant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant.py
rb24cfd9 rd4d78c9 17 17 import copy 18 18 import logging 19 20 19 21 20 from sans.guiframe.dataFitting import Data1D … … 210 209 current_plottable = self.__data 211 210 212 if issubclass(current_plottable.__class__, LoaderData1D):211 if issubclass(current_plottable.__class__, Data1D): 213 212 self.state_reader.write(filepath, current_plottable, state) 214 213 else: -
invariantview/perspectives/invariant/invariant_panel.py
rf932c02 rd4d78c9 623 623 : param event: undo button event 624 624 """ 625 if event != None:626 event.Skip()627 625 if self.state.state_num < 0: 628 626 return … … 630 628 # get the previous state_num 631 629 pre_state_num = int(self.state.saved_state['state_num']) - 1 630 632 631 self.get_state_by_num(state_num=str(pre_state_num)) 633 632 … … 639 638 self.is_power_out = False 640 639 self._info_state_num() 641 640 642 641 643 642 def on_redo(self,event=None): … … 647 646 : param event: redo button event 648 647 """ 649 if event != None:650 event.Skip()651 648 self.is_power_out = True 652 649 # get the next state_num … … 732 729 self.state.saved_state = current_state 733 730 self.state.state_num = state_num 734 731 735 732 736 733 def get_bookmark_by_num(self, num=None): … … 855 852 self._set_undo_flag(True) 856 853 self._set_redo_flag(False) 857 event.Skip()854 #event.Skip() 858 855 859 856 def _set_compute_state(self,state=None): … … 943 940 # check if this event is from do/undo button 944 941 if self.state.saved_state['is_time_machine'] or self.new_state: 945 event.Skip()942 #event.Skip() 946 943 return 947 944 … … 979 976 pass 980 977 981 event.Skip()978 #event.Skip() 982 979 self._set_undo_flag(True) 983 980 self._set_redo_flag(False) … … 1001 998 except: 1002 999 pass 1003 if event != None: event.Skip()\1000 #if event != None: event.Skip() 1004 1001 1005 1002 def _get_input_list(self):
Note: See TracChangeset
for help on using the changeset viewer.