예제 #1
0
    def __lt__(self, other):
        sortColumn = self.treeWidget().sortColumn()

        if sortColumn == 1:
            lhs = int(self.text(1))
            rhs = int(other.text(1))
            return lhs < rhs

        return QTreeWidgetItem.__lt__(self, other)
예제 #2
0
 def __lt__(self, other):
     if isinstance(other, FolderWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return True
예제 #3
0
 def __lt__(self, other):
     if isinstance(other, ScriptWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return False
예제 #4
0
 def __lt__(self, other):
     if isinstance(other, FolderWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return True
예제 #5
0
 def __lt__(self, other):
     if isinstance(other, ScriptWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return False