Changeset 95b513c in sasview


Ignore:
Timestamp:
Jul 9, 2012 12:55:14 PM (12 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:
cbba84f
Parents:
14e4804
Message:

added clear on edit menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_processor.py

    r14e4804 r95b513c  
    13651365                                           'Paste the selected Cells') 
    13661366        wx.EVT_MENU(self, self.paste_menu.GetId(), self.on_paste) 
    1367          
     1367        self.clear_menu = self.edit.Append(-1, 'Clear',  
     1368                                           'Clear the selected Cells') 
     1369        wx.EVT_MENU(self, self.clear_menu.GetId(), self.on_clear) 
     1370 
    13681371        self.edit.AppendSeparator() 
    13691372        hint = "Insert column before the selected column" 
     
    14021405        grid = self.panel.notebook.GetPage(pos) 
    14031406        grid.on_paste(None) 
     1407 
     1408    def on_clear(self, event): 
     1409        """ 
     1410        On Clear 
     1411        """ 
     1412        pos = self.panel.notebook.GetSelection() 
     1413        grid = self.panel.notebook.GetPage(pos) 
     1414        grid.Clear() 
    14041415      
    14051416    def GetLabelText(self, id): 
     
    14461457                has_selection = True 
    14471458            self.copy_menu.Enable(has_selection) 
     1459            self.clear_menu.Enable(has_selection) 
    14481460         
    14491461            if len(col_list) > 0: 
Note: See TracChangeset for help on using the changeset viewer.