Changeset 15550f4 in sasview


Ignore:
Timestamp:
Mar 27, 2009 1:23:35 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
ca94880
Parents:
2c0f2a5
Message:

working on tiff reader and plotter

File:
1 edited

Legend:

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

    r6c0568b r15550f4  
    101101        ## Update self.data2d with the current plot 
    102102        self.data2D = event.plot 
     103         
    103104        #TODO: Check for existence of plot attribute 
    104105         
     
    162163            @param event: wx context event 
    163164        """ 
     165         
    164166        slicerpop = PanelMenu() 
    165167        slicerpop.set_plots(self.plots) 
    166168        slicerpop.set_graph(self.graph) 
    167          
    168169              
    169170        id = wx.NewId() 
     
    198199        wx.EVT_MENU(self, id, self._onEditDetector)  
    199200         
    200         id = wx.NewId() 
    201         slicerpop.Append(id, '&Perform circular average') 
    202         wx.EVT_MENU(self, id, self.onCircular)  
    203          
    204         id = wx.NewId() 
    205         slicerpop.Append(id, '&Sector [Q view]') 
    206         wx.EVT_MENU(self, id, self.onSectorQ)  
    207          
    208         id = wx.NewId() 
    209         slicerpop.Append(id, '&Annulus [Phi view ]') 
    210         wx.EVT_MENU(self, id, self.onSectorPhi)  
    211         
    212         id = wx.NewId() 
    213         slicerpop.Append(id, '&Box Sum') 
    214         wx.EVT_MENU(self, id, self.onBoxSum)  
    215          
    216         id = wx.NewId() 
    217         slicerpop.Append(id, '&Box averaging in Qx') 
    218         wx.EVT_MENU(self, id, self.onBoxavgX)  
    219          
    220         id = wx.NewId() 
    221         slicerpop.Append(id, '&Box averaging in Qy') 
    222         wx.EVT_MENU(self, id, self.onBoxavgY)  
    223          
    224         if self.slicer !=None : 
     201        if not hasattr(self.data2D,"pictype"): 
    225202            id = wx.NewId() 
    226             slicerpop.Append(id, '&Clear slicer') 
    227             wx.EVT_MENU(self, id,  self.onClearSlicer)  
    228              
    229             if self.slicer.__class__.__name__ !="BoxSum": 
     203            slicerpop.Append(id, '&Perform circular average') 
     204            wx.EVT_MENU(self, id, self.onCircular)  
     205             
     206            id = wx.NewId() 
     207            slicerpop.Append(id, '&Sector [Q view]') 
     208            wx.EVT_MENU(self, id, self.onSectorQ)  
     209             
     210            id = wx.NewId() 
     211            slicerpop.Append(id, '&Annulus [Phi view ]') 
     212            wx.EVT_MENU(self, id, self.onSectorPhi)  
     213            
     214            id = wx.NewId() 
     215            slicerpop.Append(id, '&Box Sum') 
     216            wx.EVT_MENU(self, id, self.onBoxSum)  
     217             
     218            id = wx.NewId() 
     219            slicerpop.Append(id, '&Box averaging in Qx') 
     220            wx.EVT_MENU(self, id, self.onBoxavgX)  
     221             
     222            id = wx.NewId() 
     223            slicerpop.Append(id, '&Box averaging in Qy') 
     224            wx.EVT_MENU(self, id, self.onBoxavgY)  
     225             
     226            if self.slicer !=None : 
    230227                id = wx.NewId() 
    231                 slicerpop.Append(id, '&Edit Slicer Parameters') 
    232                 wx.EVT_MENU(self, id, self._onEditSlicer)  
     228                slicerpop.Append(id, '&Clear slicer') 
     229                wx.EVT_MENU(self, id,  self.onClearSlicer)  
    233230                 
    234         slicerpop.AppendSeparator()  
     231                if self.slicer.__class__.__name__ !="BoxSum": 
     232                    id = wx.NewId() 
     233                    slicerpop.Append(id, '&Edit Slicer Parameters') 
     234                    wx.EVT_MENU(self, id, self._onEditSlicer)  
     235                     
     236            slicerpop.AppendSeparator()  
    235237        
    236238        id = wx.NewId() 
Note: See TracChangeset for help on using the changeset viewer.