Changeset 0bd125d in sasview for guiframe/local_perspectives/plotting
- Timestamp:
- Feb 10, 2009 2:48:44 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:
- 39c3263
- Parents:
- 96d7959
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r8b30e62 r0bd125d 192 192 def get_params(self): 193 193 params = {} 194 params["inner_radius"] = self.inner_circle._inner_mouse_x195 params["outer_radius"] = self.outer_circle._inner_mouse_x194 params["inner_radius"] = math.fabs(self.inner_circle._inner_mouse_x) 195 params["outer_radius"] = math.fabs(self.outer_circle._inner_mouse_x) 196 196 params["nbins"] = self.nbins 197 197 return params … … 199 199 def set_params(self, params): 200 200 201 inner = params["inner_radius"]202 outer = params["outer_radius"]201 inner = math.fabs(params["inner_radius"] ) 202 outer = math.fabs(params["outer_radius"] ) 203 203 self.nbins = int(params["nbins"]) 204 204 self.inner_circle.set_cursor(inner, self.inner_circle._inner_mouse_y) -
guiframe/local_perspectives/plotting/Plotter2D.py
r0bd2cd8 r0bd125d 88 88 self.graph.render(self) 89 89 #self.Bind(boxSum.EVT_SLICER_PARS_UPDATE, self._onEVT_SLICER_PARS) 90 self.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS)90 #self.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 91 91 92 92 93 93 94 94 def _onEVT_SLICER_PARS(self, event): 95 #print "paramaters entered on slicer panel", event.type, event.params95 print "paramaters entered on slicer panel", event.type, event.params 96 96 self.slicer.set_params(event.params) 97 from sans.guicomm.events import SlicerPanelEvent98 wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer))97 #from sans.guicomm.events import SlicerPanelEvent 98 #wx.PostEvent(self.parent, SlicerPanelEvent (panel= self.panel_slicer)) 99 99 100 100 def _onEVT_1DREPLOT(self, event): … … 425 425 params=event.params, style=wx.RAISED_BORDER) 426 426 #new_panel.set_slicer(self.slicer.__class__.__name__, 427 new_panel.window_caption=s elf.slicer.__class__.__name__+" "+ str(self.data2D.name)428 new_panel.window_name = s elf.slicer.__class__.__name__+" "+ str(self.data2D.name)427 new_panel.window_caption=str(self.slicer_z)+self.slicer.__class__.__name__+" "+ str(self.data2D.name) 428 new_panel.window_name = str(self.slicer_z)+self.slicer.__class__.__name__+" "+ str(self.data2D.name) 429 429 self.panel_slicer= new_panel 430 430 self.slicer.set_panel_name( name= new_panel.window_caption)
Note: See TracChangeset
for help on using the changeset viewer.