예제 #1
0
 def __init__(self, sort_key):
     QTableWidgetItem.__init__(self)
     self.initial_value = ''
     self.current_value = ''
     self.is_deleted = False
     self.is_placeholder = False
     self.sort_key = sort_key
예제 #2
0
 def __init__(self, getter=None):
     self.val = ''
     self.sort = None
     self.sort_idx = 0
     self.getter = getter
     self.resolved = False
     QTableWidgetItem.__init__(self, '')
     self.setFlags(Qt.ItemFlag.ItemIsEnabled | Qt.ItemFlag.ItemIsSelectable)
예제 #3
0
 def __init__(self, val, sort, idx=0):
     self.sort = sort
     self.sort_idx = idx
     QTableWidgetItem.__init__(self, val)
     self.setFlags(Qt.ItemFlag.ItemIsEnabled | Qt.ItemFlag.ItemIsSelectable)
예제 #4
0
 def __init__(self, count):
     QTableWidgetItem.__init__(self, str(count))
     self._count = count
예제 #5
0
 def __init__(self, txt):
     QTableWidgetItem.__init__(self, txt)
     self.sort_key = sort_key(unicode_type(txt))
예제 #6
0
 def __init__(self, count):
     QTableWidgetItem.__init__(self, unicode_type(count))
     self._count = count
예제 #7
0
 def __init__(self, text):
     QTableWidgetItem.__init__(self, text)
     self.setFlags(Qt.ItemFlag.ItemIsEnabled)
     self.sort = text.lower()
예제 #8
0
 def __init__(self, txt):
     QTableWidgetItem.__init__(self, txt)
     self.sort_key = sort_key(str(txt))