Changeset 0bd125d in sasview


Ignore:
Timestamp:
Feb 10, 2009 12:48:44 PM (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:
39c3263
Parents:
96d7959
Message:

slicer close panel fixed and find problem on sector slicermotion

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    r8b30e62 r0bd125d  
    192192    def get_params(self): 
    193193        params = {} 
    194         params["inner_radius"] = self.inner_circle._inner_mouse_x 
    195         params["outer_radius"] = self.outer_circle._inner_mouse_x 
     194        params["inner_radius"] = math.fabs(self.inner_circle._inner_mouse_x) 
     195        params["outer_radius"] = math.fabs(self.outer_circle._inner_mouse_x) 
    196196        params["nbins"] = self.nbins 
    197197        return params 
     
    199199    def set_params(self, params): 
    200200         
    201         inner = params["inner_radius"]  
    202         outer = params["outer_radius"]  
     201        inner = math.fabs(params["inner_radius"] ) 
     202        outer = math.fabs(params["outer_radius"] ) 
    203203        self.nbins = int(params["nbins"]) 
    204204        self.inner_circle.set_cursor(inner, self.inner_circle._inner_mouse_y) 
  • guiframe/local_perspectives/plotting/Plotter2D.py

    r0bd2cd8 r0bd125d  
    8888        self.graph.render(self) 
    8989        #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) 
    9191        
    9292         
    9393         
    9494    def _onEVT_SLICER_PARS(self, event): 
    95         #print "paramaters entered on slicer panel", event.type, event.params 
     95        print "paramaters entered on slicer panel", event.type, event.params 
    9696        self.slicer.set_params(event.params) 
    97         from sans.guicomm.events import SlicerPanelEvent 
    98         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)) 
    9999         
    100100    def _onEVT_1DREPLOT(self, event): 
     
    425425                                 params=event.params, style=wx.RAISED_BORDER) 
    426426        #new_panel.set_slicer(self.slicer.__class__.__name__, 
    427         new_panel.window_caption=self.slicer.__class__.__name__+" "+ str(self.data2D.name) 
    428         new_panel.window_name = self.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) 
    429429        self.panel_slicer= new_panel 
    430430        self.slicer.set_panel_name( name= new_panel.window_caption) 
Note: See TracChangeset for help on using the changeset viewer.