Changeset 6f28e70 in sasview for guiframe


Ignore:
Timestamp:
Apr 25, 2011 5:17:58 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

save state fix for multiple panel

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r2e3f9e3 r6f28e70  
    13571357        doc = None 
    13581358        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           
    13611363        # Write the XML document 
    13621364        if doc != None: 
     
    13661368        else: 
    13671369            msg = "%s cannot read %s\n" % (str(APPLICATION_NAME), str(path)) 
    1368             #raise RuntimeError, msg 
     1370            logging.error(msg) 
    13691371                     
    13701372    def on_save_helper(self, doc, reader, panel, path): 
  • guiframe/panel_base.py

    r0a2fdca r6f28e70  
    5555        self.Bind(wx.EVT_RIGHT_DOWN, self.on_set_focus) 
    5656         
     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     
    5764    def has_changed(self): 
    5865        """ 
Note: See TracChangeset for help on using the changeset viewer.