def __ge__(self, other): if isinstance(other, ScriptWidgetItem): return QTreeWidgetItem.__ge__(self, other) else: return False