Changeset 0d9dae8 in sasview for guiframe/local_perspectives/plotting/AnnulusSlicer.py
- Timestamp:
- Feb 2, 2009 11:51:27 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:
- 2cf2b87
- Parents:
- 00d083c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r7608cb5 r0d9dae8 6 6 # 7 7 8 8 import math 9 import wx 10 from copy import deepcopy 9 11 # Debug printout 10 from sans.guicomm.events import StatusEvent 11 from sans.guicomm.events import NewPlotEvent 12 from sans.guicomm.events import NewPlotEvent, StatusEvent,SlicerParameterEvent,EVT_SLICER_PARS 12 13 from BaseInteractor import _BaseInteractor 13 from copy import deepcopy 14 import math 15 16 import SlicerParameters 17 import wx 14 18 15 19 16 class AnnulusInteractor(_BaseInteractor): … … 57 54 58 55 # Bind to slice parameter events 59 self.base.parent.Bind( SlicerParameters.EVT_SLICER_PARS, self._onEVT_SLICER_PARS)56 self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 60 57 61 58 … … 90 87 self.inner_circle.clear() 91 88 #self.base.connect.disconnect() 92 self.base.parent.Unbind( SlicerParameters.EVT_SLICER_PARS)89 self.base.parent.Unbind(EVT_SLICER_PARS) 93 90 94 91 def update(self): … … 154 151 new_plot.detector =self.base.data2D.detector 155 152 # If the data file does not tell us what the axes are, just assume... 156 new_plot.xaxis("\\rm{\phi}", ' ^{o}')153 new_plot.xaxis("\\rm{\phi}", 'rad') 157 154 new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 158 155 new_plot.group_id = "SectorPhi"+self.base.data2D.name … … 169 166 170 167 # Post paramters 171 event = SlicerParameter s.SlicerParameterEvent()168 event = SlicerParameterEvent() 172 169 event.type = self.__class__.__name__ 173 170 event.params = self.get_params()
Note: See TracChangeset
for help on using the changeset viewer.