Ignore:
Timestamp:
Feb 10, 2009 1:54:48 PM (16 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:
96d7959
Parents:
07aeb8a
Message:

closing onf slicerpnale fixed

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    r8b30e62 r0bd2cd8  
    1717from danse.common.plottools.PlotPanel import PlotPanel 
    1818from danse.common.plottools.plottables import Graph,Data1D 
    19 from sans.guicomm.events import EVT_NEW_PLOT,EVT_SLICER_PARS_UPDATE 
     19from sans.guicomm.events import EVT_NEW_PLOT 
    2020from sans.guicomm.events import EVT_SLICER_PARS 
    2121from sans.guicomm.events import StatusEvent ,NewPlotEvent,SlicerEvent 
     
    8989        #self.Bind(boxSum.EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PARS) 
    9090        self.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    91         self.Bind(EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PANEL) 
     91        
    9292         
    9393         
     
    9797        from sans.guicomm.events import SlicerPanelEvent 
    9898        wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer)) 
    99          
    100          
    101     def _onEVT_SLICER_PANEL(self, event): 
    102         #print "box move plotter2D", event.type, event.params 
    103         self.panel_slicer.set_slicer(event.type, event.params) 
    104         from sans.guicomm.events import SlicerPanelEvent 
    105         wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer))  
    10699         
    107100    def _onEVT_1DREPLOT(self, event): 
     
    433426        #new_panel.set_slicer(self.slicer.__class__.__name__, 
    434427        new_panel.window_caption=self.slicer.__class__.__name__+" "+ str(self.data2D.name) 
    435         
     428        new_panel.window_name = self.slicer.__class__.__name__+" "+ str(self.data2D.name) 
    436429        self.panel_slicer= new_panel 
    437          
    438         wx.PostEvent(self.panel_slicer, event) 
     430        self.slicer.set_panel_name( name= new_panel.window_caption) 
     431        #wx.PostEvent(self.panel_slicer, event) 
    439432        from sans.guicomm.events import SlicerPanelEvent 
    440433        wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer)) 
  • guiframe/local_perspectives/plotting/boxSum.py

    rd468daa r0bd2cd8  
    6767             
    6868        #self.connect_markers([]) 
    69                        
     69        self.panel_name=""       
    7070        self.update() 
    7171        self._post_data() 
     
    7474        #print "box sum  self.base.parent",self.base.parent 
    7575        self.base.parent.Bind(SlicerParameters.EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    76         
     76    def set_panel_name(self, name): 
     77        self.panel_name= name 
    7778    def _onEVT_SLICER_PARS(self, event): 
    7879        #printEVT("AnnulusSlicer._onEVT_SLICER_PARS") 
     
    166167        self.type= self.__class__.__name__ 
    167168        params= self.get_params() 
    168         event = SlicerParamUpdateEvent(type=self.type, params=params) 
    169         wx.PostEvent(self.base, event) 
     169        event = SlicerParamUpdateEvent(type=self.type, params=params, 
     170                                       panel_name= self.panel_name) 
     171        wx.PostEvent(self.base.parent, event) 
    170172         
    171173             
Note: See TracChangeset for help on using the changeset viewer.