code: def OnSelectAll(self, event):
          
  
          entry_line = \
              self.main_window.entry_line_panel.entry_line_panel.entry_line
  
          if wx.Window.FindFocus() != entry_line:
              self.main_window.grid.SelectAll()
  
          else:
              entry_line.SelectAll()
docs: Select all cells event handler