예제 #1
0
 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()
예제 #2
0
 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))
예제 #3
0
 def OnDelete(self, event=None):
     if not self.IsCellEditControlShown():
         self._execute(
             ClearArea(self.selection.topleft, self.selection.bottomright))
         self._resize_grid()
예제 #4
0
파일: kweditor.py 프로젝트: gottaBoy/RIDE
 def OnDelete(self, event=None):
     self._execute(
         ClearArea(self.selection.topleft, self.selection.bottomright))
     self._resize_grid()