Changeset d0802c3 in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Jul 1, 2008 2:54:45 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
a17ffdf
Parents:
d6113849
Message:

Handle over application window size. Allow plot clearing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/plotting.py

    r7bb61da rd0802c3  
    6565        self.graph.render(self) 
    6666         
     67    def _reset(self): 
     68        """ 
     69            Resets internal data and graph 
     70        """     
     71        self.graph.reset() 
     72        self.plots      = {} 
     73        self.action_ids = {} 
     74     
    6775    def _onEVT_1DREPLOT(self, event): 
    6876        """ 
     
    7179        """ 
    7280        #TODO: Check for existence of plot attribute 
     81         
     82        if hasattr(event, "reset"): 
     83            self._reset() 
    7384         
    7485        is_new = True 
Note: See TracChangeset for help on using the changeset viewer.