Changeset d85ee8c in sasview for prview/perspectives/pr/inversion_panel.py
- Timestamp:
- Apr 25, 2011 5:35:47 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:
- c7a7e1b
- Parents:
- 4e78f56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
r6ce7201 rd85ee8c 235 235 return wx.Panel.__getattribute__(self, name) 236 236 237 def save_project(self, doc=None): 238 """ 239 return an xml node containing state of the panel 240 that guiframe can write to file 241 """ 242 data = self.get_data() 243 state = self.get_state() 244 if data is not None: 245 new_doc = self._manager.state_reader.write_toXML(data, state) 246 if new_doc is not None: 247 if doc is not None and hasattr(doc, "firstChild"): 248 child = new_doc.firstChild.firstChild 249 doc.firstChild.appendChild(child) 250 else: 251 doc = new_doc 252 return doc 253 237 254 def on_save(self, evt=None): 238 255 """
Note: See TracChangeset
for help on using the changeset viewer.