Ignore:
Timestamp:
Feb 2, 2009 11:51:27 AM (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:
2cf2b87
Parents:
00d083c
Message:

add a new module containing common classes that I used often:
sans.guiframe.utils

remove event slicer and add it in sans.guicoom.events,
modified slicer for those events

File:
1 edited

Legend:

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

    r7608cb5 r0d9dae8  
    66# 
    77 
    8   
     8import math 
     9import wx 
     10from copy import deepcopy  
    911# Debug printout 
    10 from sans.guicomm.events import StatusEvent  
    11 from sans.guicomm.events import NewPlotEvent 
     12from sans.guicomm.events import NewPlotEvent, StatusEvent,SlicerParameterEvent,EVT_SLICER_PARS 
    1213from BaseInteractor import _BaseInteractor 
    13 from copy import deepcopy 
    14 import math 
    15  
    16 import SlicerParameters 
    17 import wx 
     14 
    1815 
    1916class AnnulusInteractor(_BaseInteractor): 
     
    5754         
    5855        # 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) 
    6057         
    6158 
     
    9087        self.inner_circle.clear() 
    9188        #self.base.connect.disconnect() 
    92         self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS) 
     89        self.base.parent.Unbind(EVT_SLICER_PARS) 
    9390         
    9491    def update(self): 
     
    154151        new_plot.detector =self.base.data2D.detector 
    155152        # 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') 
    157154        new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
    158155        new_plot.group_id = "SectorPhi"+self.base.data2D.name 
     
    169166         
    170167        # Post paramters 
    171         event = SlicerParameters.SlicerParameterEvent() 
     168        event = SlicerParameterEvent() 
    172169        event.type = self.__class__.__name__ 
    173170        event.params = self.get_params() 
Note: See TracChangeset for help on using the changeset viewer.