コード例 #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
ファイル: autokey_treewidget.py プロジェクト: autokey/autokey
 def __lt__(self, other):
     if isinstance(other, FolderWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return True
コード例 #3
0
ファイル: autokey_treewidget.py プロジェクト: autokey/autokey
 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