def focusOutEvent(self, event):
        """Reimplemented to handle focus"""
        self.focus_changed.emit()
        QPlainTextEdit.focusOutEvent(self, event)
def focusOutEvent ( self , event ) : self . focus_changed . emit ( ) QPlainTextEdit . focusOutEvent ( self , event )
Reimplemented to handle focus