- Timestamp:
- Apr 25, 2011 3:17:58 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:
- ed4e122
- Parents:
- 2e3f9e3
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r2e3f9e3 r6f28e70 1357 1357 doc = None 1358 1358 for panel in self.panels.values(): 1359 doc = self.on_save_helper(doc, reader, panel, path) 1360 1359 temp = panel.save_project(doc) 1360 if temp is not None: 1361 doc = temp 1362 1361 1363 # Write the XML document 1362 1364 if doc != None: … … 1366 1368 else: 1367 1369 msg = "%s cannot read %s\n" % (str(APPLICATION_NAME), str(path)) 1368 #raise RuntimeError, msg1370 logging.error(msg) 1369 1371 1370 1372 def on_save_helper(self, doc, reader, panel, path): -
guiframe/panel_base.py
r0a2fdca r6f28e70 55 55 self.Bind(wx.EVT_RIGHT_DOWN, self.on_set_focus) 56 56 57 def save_project(self, doc=None): 58 """ 59 return an xml node containing state of the panel 60 that guiframe can write to file 61 """ 62 return None 63 57 64 def has_changed(self): 58 65 """
Note: See TracChangeset
for help on using the changeset viewer.