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/AzimutSlicer.py

    r54cc36a r0d9dae8  
    88 
    99# Debug printout 
     10import math 
     11import wx 
     12from copy import deepcopy 
    1013 
    1114from BaseInteractor import _BaseInteractor 
    12 from copy import deepcopy 
    13 import math 
    14  
    15 from sans.guicomm.events import NewPlotEvent, StatusEvent 
    16 import SlicerParameters 
    17 import wx 
     15from sans.guicomm.events import NewPlotEvent, StatusEvent,SlicerParameterEvent,EVT_SLICER_PARS 
     16 
     17 
    1818 
    1919class SectorInteractor(_BaseInteractor): 
     
    5959        self._post_data() 
    6060        # Bind to slice parameter events 
    61         self.base.parent.Bind(SlicerParameters.EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
     61        self.base.parent.Bind(EVT_SLICER_PARS, self._onEVT_SLICER_PARS) 
    6262 
    6363 
     
    9696        self.left_edge.clear() 
    9797        #self.base.connect.disconnect() 
    98         self.base.parent.Unbind(SlicerParameters.EVT_SLICER_PARS) 
     98        self.base.parent.Unbind(EVT_SLICER_PARS) 
    9999         
    100100    def update(self): 
     
    197197         
    198198         # Post paramters 
    199         #event = SlicerParameters.SlicerParameterEvent() 
     199        #event = SlicerParameterEvent() 
    200200        #event.type = self.__class__.__name__ 
    201201        #event.params = self.get_params() 
Note: See TracChangeset for help on using the changeset viewer.