Changeset 4e78f56 in sasview for sansview/perspectives/fitting
- Timestamp:
- Apr 25, 2011 5:28:19 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:
- d85ee8c
- Parents:
- ed4e122
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
r1b1bbf9 r4e78f56 65 65 self.add_default_pages() 66 66 67 def save_project(self, doc=None): 68 """ 69 return an xml node containing state of the panel 70 that guiframe can write to file 71 """ 72 for uid, page in self.opened_pages.iteritems(): 73 data = page.get_data() 74 # state must be cloned 75 state = page.get_state().clone() 76 if data is not None: 77 new_doc = self._manager.state_reader.write_toXML(data, state) 78 if doc != None and hasattr(doc, "firstChild"): 79 child = new_doc.firstChild.firstChild 80 doc.firstChild.appendChild(child) 81 else: 82 doc = new_doc 83 return doc 67 84 68 85 def _on_engine_change(self, name='scipy'): … … 345 362 self.fit_page_name[page.uid].appendItem(page.createMemento()) 346 363 347 def _onUndo(self, event 364 def _onUndo(self, event): 348 365 """ 349 366 return the previous state of a given page is available
Note: See TracChangeset
for help on using the changeset viewer.