Ignore:
Timestamp:
Dec 18, 2008 10:56:38 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:
b319def8
Parents:
5554566
Message:

add boxdialog need to be remove

File:
1 edited

Legend:

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

    ref0c170 r38224f10  
    203203        wx.EVT_MENU(self, id, self.onSectorPhi)  
    204204       
     205        id = wx.NewId() 
     206        slicerpop.Append(id, '&Box averaging') 
     207        wx.EVT_MENU(self, id, self.onBoxavg)  
    205208         
    206209        id = wx.NewId() 
     
    367370        wx.PostEvent(self.parent, InternalEvent(slicer= AnnulusInteractor)) 
    368371         
    369         
     372    def onBoxavg(self,event): 
     373        from boxSlicer import BoxInteractor 
     374        self.onClearSlicer(event) 
     375        wx.PostEvent(self.parent, InternalEvent(slicer= BoxInteractor)) 
     376        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()  
    370384    def onClearSlicer(self, event): 
    371385        """ 
Note: See TracChangeset for help on using the changeset viewer.