Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def textRouter::TextRouter::on_menuEditClear_select (   self,
  event 
)

Clears selection.

Definition at line 495 of file textRouter.py.

00495                                             :
        """Clears selection."""
        widget = self.components.area1
        if hasattr(widget, 'editable'):
            if widget.canCut():
                # delete the current selection,
                # if we can't do a Cut we shouldn't be able to delete either
                # which is why i used the test above
                sel = widget.replaceSelection('')
            else:
                ins = widget.getInsertionPoint()
                try:
                    widget.replace(ins, ins + 1, '')
                except:
                    pass                 
        self.saveState()

    def on_menuEditSelectAll_select(self, event):


Generated by  Doxygen 1.6.0   Back to index