Changeset 0bd2cd8 in sasview for guiframe/local_perspectives
- Timestamp:
- Feb 10, 2009 1:54:48 PM (16 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:
- 96d7959
- Parents:
- 07aeb8a
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter2D.py
r8b30e62 r0bd2cd8 17 17 from danse.common.plottools.PlotPanel import PlotPanel 18 18 from danse.common.plottools.plottables import Graph,Data1D 19 from sans.guicomm.events import EVT_NEW_PLOT ,EVT_SLICER_PARS_UPDATE19 from sans.guicomm.events import EVT_NEW_PLOT 20 20 from sans.guicomm.events import EVT_SLICER_PARS 21 21 from sans.guicomm.events import StatusEvent ,NewPlotEvent,SlicerEvent … … 89 89 #self.Bind(boxSum.EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PARS) 90 90 self.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 91 self.Bind(EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PANEL)91 92 92 93 93 … … 97 97 from sans.guicomm.events import SlicerPanelEvent 98 98 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.params103 self.panel_slicer.set_slicer(event.type, event.params)104 from sans.guicomm.events import SlicerPanelEvent105 wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer))106 99 107 100 def _onEVT_1DREPLOT(self, event): … … 433 426 #new_panel.set_slicer(self.slicer.__class__.__name__, 434 427 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) 436 429 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) 439 432 from sans.guicomm.events import SlicerPanelEvent 440 433 wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer)) -
guiframe/local_perspectives/plotting/boxSum.py
rd468daa r0bd2cd8 67 67 68 68 #self.connect_markers([]) 69 69 self.panel_name="" 70 70 self.update() 71 71 self._post_data() … … 74 74 #print "box sum self.base.parent",self.base.parent 75 75 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 77 78 def _onEVT_SLICER_PARS(self, event): 78 79 #printEVT("AnnulusSlicer._onEVT_SLICER_PARS") … … 166 167 self.type= self.__class__.__name__ 167 168 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) 170 172 171 173
Note: See TracChangeset
for help on using the changeset viewer.