(self, event)
return super().keyPressEvent(event)
Override keyPressEvent to allow close with Enter
Override keyPressEvent to allow close with Enter
Override keyPressEvent to allow close with Enter
def keyPressEvent(self, event):
        """ Override keyPressEvent to allow close with Enter
        """
        if event.key() == Qt.Key_Return:
            return self.accept()

        return super().keyPressEvent(event)
def keyPressEvent ( self , event ) : if event . key ( ) == Qt . Key_Return : return self . accept ( ) return super ( ) . keyPressEvent ( event )