Changeset 645f9b6 in sasview
- Timestamp:
- Aug 17, 2010 11:14:25 AM (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:
- 4523b68
- Parents:
- 5069a18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
r9b18735 r645f9b6 165 165 set state when loading it from a .inv/.svs file 166 166 """ 167 if state == None ordata == None:167 if state == None and data == None: 168 168 self.state = IState() 169 elif state == None or data == None: return 169 170 else: 170 171 self.new_state = True … … 173 174 self.state = state 174 175 self.state.file = data.name 176 175 177 num = self.state.saved_state['state_num'] 176 177 178 if num > 0 : 178 179 self._undo_enable() … … 198 199 #make sure that the data is reset (especially when loaded from a inv file) 199 200 self.state.data = self._data 201 200 202 self.new_state = False 201 203 self.is_state_data = False … … 567 569 #display a message 568 570 self.set_message() 569 571 570 572 # reset power_out to default to get ready for another '_on_text' 571 573 if self.is_power_out == True: … … 579 581 #enable the button_ok for more details 580 582 self.button_details.Enable() 581 583 582 584 if event != None: 583 585 if not self.button_report.IsEnabled(): self.button_report.Enable(True) 584 586 if not self.button_save.IsEnabled(): self.button_save.Enable(True) 585 587 wx.PostEvent(self.parent, StatusEvent(status = '\nFinished invariant computation...')) 586 588 589 587 590 def undo(self,event=None): 588 591 """ -
sansview/perspectives/fitting/fitpanel.py
r9b18735 r645f9b6 239 239 # the page is still opened 240 240 panel.reset_page(state=state) 241 panel.save_current_state() 241 242 page_is_opened = True 242 243 if not page_is_opened: … … 246 247 self.manager.store_page(page=panel, data=state.data) 247 248 panel.reset_page(state=state) 249 panel.save_current_state() 248 250 249 251 def clear_panel(self, format='.svs'):
Note: See TracChangeset
for help on using the changeset viewer.