Changeset b319def8 in sasview for guiframe


Ignore:
Timestamp:
Dec 18, 2008 11:05:35 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:
08b9c6c8
Parents:
38224f10
Message:

working on box slicer

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    r38224f10 rb319def8  
    373373        from boxSlicer import BoxInteractor 
    374374        self.onClearSlicer(event) 
     375        self.slicer=BoxInteractor 
     376        from SlicerParameters import SlicerParameterPanel 
     377        dialog = SlicerParameterPanel(self.parent, -1, "Slicer Parameters") 
     378        dialog.set_slicer(self.slicer.__name__, 
     379                        self.slicer.get_params()) 
     380        if dialog.ShowModal() == wx.ID_OK: 
     381            dialog.Destroy() 
    375382        wx.PostEvent(self.parent, InternalEvent(slicer= BoxInteractor)) 
    376383        print "onboxavg",self.slicer 
    377         if self.slicer !=None: 
    378             from SlicerParameters import SlicerParameterPanel 
    379             dialog = SlicerParameterPanel(self.parent, -1, "Slicer Parameters") 
    380             dialog.set_slicer(self.slicer.__class__.__name__, 
    381                             self.slicer.get_params()) 
    382             if dialog.ShowModal() == wx.ID_OK: 
    383                 dialog.Destroy()  
     384         
     385         
    384386    def onClearSlicer(self, event): 
    385387        """ 
  • guiframe/local_perspectives/plotting/boxSlicer.py

    r38224f10 rb319def8  
    164164        
    165165        self.count, self.error= box(self.base.data2D) 
    166                        
     166         
     167         
     168               
    167169                                        
    168170    def moveend(self, ev): 
Note: See TracChangeset for help on using the changeset viewer.