def eventFilter( self, object, event ):
        """
        Filters out key press events for the shortcut section for this edit.
        
        :param      object | <QObject>
                    event  | <QEvent>
        """
        if ( object != self.uiShortcutTXT ):
            return False
            
        if ( event.type() == event.KeyPress ):
            seq = QKeySequence(event.key() + int(event.modifiers()))
            self.uiShortcutTXT.setText( seq.toString() )
            return True
            
        elif ( event.type() == event.KeyRelease):
            return True
        
        return False
def eventFilter ( self , object , event ) : if ( object != self . uiShortcutTXT ) : return False if ( event . type ( ) == event . KeyPress ) : seq = QKeySequence ( event . key ( ) + int ( event . modifiers ( ) ) ) self . uiShortcutTXT . setText ( seq . toString ( ) ) return True elif ( event . type ( ) == event . KeyRelease ) : return True return False
Filters out key press events for the shortcut section for this edit.
        
        :param      object | <QObject>
                    event  | <QEvent>