Changeset 18eba35 in sasview for guiframe/local_perspectives/plotting/boxSum.py
- Timestamp:
- Feb 24, 2009 11:46:12 AM (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:
- cce33b3
- Parents:
- 2a8fac1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/boxSum.py
r1ce365f8 r18eba35 16 16 import SlicerParameters 17 17 import wx 18 #(SlicerParamUpdateEvent, EVT_SLICER_PARS_UPDATE) = wx.lib.newevent.NewEvent() 19 from sans.guicomm.events import SlicerParamUpdateEvent 18 19 from sans.guicomm.events import SlicerParamUpdateEvent,EVT_SLICER_PARS,StatusEvent 20 20 class BoxSum(_BaseInteractor): 21 21 """ … … 73 73 # Bind to slice parameter events 74 74 #print "box sum self.base.parent",self.base.parent 75 #self.base.parent.Bind(SlicerParameters.EVT_SLICER_PARS, self._onEVT_SLICER_PARS)75 self.base.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 76 76 def set_panel_name(self, name): 77 77 self.panel_name= name 78 78 def _onEVT_SLICER_PARS(self, event): 79 wx.PostEvent(self.base, StatusEvent(status="Boxsum._onEVT_SLICER_PARS")) 79 wx.PostEvent(self.base.parent, StatusEvent(status="Boxsum._onEVT_SLICER_PARS")) 80 print "receiving value ",event.params 80 81 event.Skip() 81 82 if event.type == self.__class__.__name__: … … 106 107 self.vertical_lines.clear() 107 108 self.center.clear() 108 109 self.base.connect.clearall() 109 110 #self.base.connect.disconnect() 110 #self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS)111 self.base.Unbind(EVT_SLICER_PARS) 111 112 112 113 def update(self): … … 220 221 self.center_x=params["center_x"] 221 222 self.center_y=params["center_y"] 222 """223 223 224 self.center.update(center_x=self.center_x,center_y=self.center_y) 224 225 … … 232 233 self._post_data() 233 234 234 """235 235 236 236 237 def freeze_axes(self):
Note: See TracChangeset
for help on using the changeset viewer.