def METHOD_NAME(self, obj, event):
    if event.type() == PySide2.QtCore.QEvent.KeyPress:
        return True
    elif event.type() == PySide2.QtCore.QEvent.MouseButtonPress:
        return True
    elif event.type() == PySide2.QtCore.QEvent.MouseButtonRelease:
        return True
    elif event.type() == PySide2.QtCore.QEvent.MouseButtonDblClick:
        return True
    elif event.type() == PySide2.QtCore.QEvent.MouseMove:
        return True
    else:
        return PySide2.QtCore.QObject.METHOD_NAME(self, obj, event)