def clearSelection(self):
        """
        Clears the selected text for this edit.
        """
        first = None
        editors = self.editors()
        for editor in editors:
            if not editor.selectedText():
               continue
            
            first = first or editor
            editor.backspace()
        
        for editor in editors:
            editor.setFocus()
        
        if first:
            first.setFocus()
def clearSelection ( self ) : first = None editors = self . editors ( ) for editor in editors : if not editor . selectedText ( ) : continue first = first or editor editor . backspace ( ) for editor in editors : editor . setFocus ( ) if first : first . setFocus ( )
Clears the selected text for this edit.