def OnDelete(self, event=None): _iscelleditcontrolshown = self.IsCellEditControlShown() if _iscelleditcontrolshown: # TODO Review if still needed # On Windows, Delete key does not work in TextCtrl automatically self.delete() elif self.has_focus(): self._execute(ClearArea(self.selection.topleft, self.selection.bottomright)) self._resize_grid()
def OnDelete(self, event=None): """ Fixed on 4.0.0a3 if wx.VERSION >= (3, 0, 3, ''): # DEBUG wxPhoenix _iscelleditcontrolshown = self.IsCellEditControlEnabled() else: """ _iscelleditcontrolshown = self.IsCellEditControlShown() if _iscelleditcontrolshown: # TODO Review if still needed # On Windows, Delete key does not work in TextCtrl automatically self.delete() elif self.has_focus(): self._execute(ClearArea(self.selection.topleft, self.selection.bottomright))
def OnDelete(self, event=None): if not self.IsCellEditControlShown(): self._execute( ClearArea(self.selection.topleft, self.selection.bottomright)) self._resize_grid()
def OnDelete(self, event=None): self._execute( ClearArea(self.selection.topleft, self.selection.bottomright)) self._resize_grid()