Changeset ed4e122 in sasview
- Timestamp:
- Apr 25, 2011 5:21:37 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:
- 4e78f56
- Parents:
- 6f28e70
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
r04295ea red4e122 165 165 self._manager = manager 166 166 167 def save_project(self, doc=None): 168 """ 169 return an xml node containing state of the panel 170 that guiframe can write to file 171 """ 172 data = self.get_data() 173 state = self.get_state() 174 if data is not None: 175 new_doc = self._manager.state_reader.write_toXML(data, state) 176 if new_doc is not None: 177 if doc is not None and hasattr(doc, "firstChild"): 178 child = new_doc.firstChild.firstChild 179 doc.firstChild.appendChild(child) 180 else: 181 doc = new_doc 182 return doc 183 167 184 def set_state(self,state=None,data=None): 168 185 """
Note: See TracChangeset
for help on using the changeset viewer.