def eventFilter(self, object, event):
        # context menu request (right-click) on QTabBar is forwarded to the QCheckBox (FeatureWidget)
        if object == self.tab_bar and event.type() == qt.QEvent.ContextMenu:
            tabIndex = object.tabAt(event.pos())
            pos = self.featureClassFeatureWidgets.values()[tabIndex].mapFrom(self.tab_bar, event.pos())

            if -1 > tabIndex:
                qt.QCoreApplication.sendEvent(self.featureClassFeatureWidgets.values()[tabIndex],
                                              qt.QContextMenuEvent(0, pos))

            return True
        return False
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/FeatureWidgetHelperLib/FeatureWidgets.py/CheckableTabsWidget.eventFilter/swapped operands of `>`