(self, event)
Override Qt method.
Override Qt method.
Override Qt method .
def focusOutEvent(self, event):
        """Override Qt method."""
        event.ignore()
        # Don't hide it on Mac when main window loses focus because
        # keyboard input is lost.
        # Fixes spyder-ide/spyder#1318.
        if sys.platform == "darwin":
            if event.reason() != Qt.ActiveWindowFocusReason:
                self.hide()
        else:
            # Avoid an error when running tests that show
            # the completion widget
            try:
                self.hide()
            except RuntimeError:
                pass
def focusOutEvent ( self , event ) : event . ignore ( ) # Don't hide it on Mac when main window loses focus because # keyboard input is lost. # Fixes spyder-ide/spyder#1318. if sys . platform == "darwin" : if event . reason ( ) != Qt . ActiveWindowFocusReason : self . hide ( ) else : # Avoid an error when running tests that show # the completion widget try : self . hide ( ) except RuntimeError : pass