Changeset ca224b1 in sasview for src/sas/sasgui


Ignore:
Timestamp:
Dec 19, 2016 4:09:08 PM (8 years ago)
Author:
krzywon
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0de74af
Parents:
6b9e76f
Message:

Delete all plots when resetting state.

Location:
src/sas/sasgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/plotting.py

    r6ffa0dd rca224b1  
    134134        """ 
    135135        for group_id in self.plot_panels.keys(): 
    136             panel = self.plot_panels[group_id] 
    137             panel.graph.reset() 
    138             self.hide_panel(group_id) 
     136            self.clear_panel_by_id(group_id) 
    139137        self.plot_panels = {} 
    140138 
  • src/sas/sasgui/perspectives/fitting/pagestate.py

    r6b9e76f rca224b1  
    393393 
    394394    @staticmethod 
    395     def param_remap_to_sasmodels_convert(self, params, is_string=False): 
     395    def param_remap_to_sasmodels_convert(params, is_string=False): 
    396396        """ 
    397397        Remaps the parameters for sasmodels conversion 
     
    425425 
    426426    @staticmethod 
    427     def param_remap_from_sasmodels_convert(self, params): 
     427    def param_remap_from_sasmodels_convert(params): 
    428428        """ 
    429429        Converts {name : value} map back to [] param list 
Note: See TracChangeset for help on using the changeset viewer.