def __init__(self, data, keyname): QTableWidgetItem.__init__(self) self.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) self.data = data self.keyname = keyname self.setText(self.dataToQString(self.data))
def __init__(self): """ Constructor. """ QTableWidgetItem.__init__(self, self.UserType) self.setFlags(self.flags() & ~Qt.ItemIsEditable) self.value = None
def __init__(self, data, keyname): QTableWidgetItem.__init__(self) self.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) self.data = data self.keyname = keyname self.setText(self.dataToQString(self.data))
def __init__(self): """ Constructor. """ QTableWidgetItem.__init__(self, self.UserType) self.setFlags(self.flags() & ~Qt.ItemIsEditable) self.value = None
def __init__(self, sigma, name=None): QTableWidgetItem.__init__(self) # init # ------------------------------------------------ self.sigma = sigma self.pixmapSize = QSize(61, 61) if not name: self.setNameAndBrush(self.sigma) else: self.setText(name)
def __init__(self, sigma, name=None): QTableWidgetItem.__init__(self) # init # ------------------------------------------------ self.sigma = sigma self.pixmapSize = QSize(61, 61) if not name: self.setNameAndBrush(self.sigma) else: self.setText(name)
def __init__(self): QTableWidgetItem.__init__(self) # init # ------------------------------------------------ self.isExpanded = True self.isRootNode = False self.feature = None self.vHeaderName = None self.children = [] pixmap = QPixmap(20, 20) pixmap.fill(Qt.transparent) self.setIcon(QIcon(pixmap))
def __init__(self): QTableWidgetItem.__init__(self) # init # ------------------------------------------------ self.isExpanded = True self.isRootNode = False self.feature = None self.vHeaderName = None self.children = [] pixmap = QPixmap(20, 20) pixmap.fill(Qt.transparent) self.setIcon(QIcon(pixmap))
def __init__(self, parent, event): QTableWidgetItem.__init__(self) self.__parent = parent self.__event = event try: isChecked = self.__parent.checked[event] if isChecked: checkState = Qt.Checked else: checkState = Qt.Unchecked except KeyError: checkState = Qt.Unchecked self.setFlags(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled) self.setCheckState(checkState)
def __init__(self, argument, color=Qt.white): """ Constructor. Argument may be either a string or a Property object. If argument is the latter the property's user info will be used for the label's tooltip. """ if isinstance(argument, Property): tooltip = argument.name() + " (" + argument.userInfo() + ")" name = argument.name() self._property = argument else: tooltip = argument name = argument self._property = None QTableWidgetItem.__init__(self, name) self.setToolTip(tooltip) self.setFlags(Qt.ItemIsEnabled) self.setBackgroundColor(color)
def __init__(self, argument, color=Qt.white): """ Constructor. Argument may be either a string or a Property object. If argument is the latter the property's user info will be used for the label's tooltip. """ if isinstance(argument, Property): tooltip = argument.name() + " (" + argument.userInfo() + ")" name = argument.name() self._property = argument else: tooltip = argument name = argument self._property = None QTableWidgetItem.__init__(self, name) self.setToolTip(tooltip) self.setFlags(Qt.ItemIsEnabled) self.setBackgroundColor(color)
def __init__(self, string, share): QTableWidgetItem.__init__(self, string) self.share = share
def __init__(self, text, sort_key): QTableWidgetItem.__init__(self, text, QTableWidgetItem.UserType) self.sort_key = sort_key
def __init__(self, *args, **kwargs): QTableWidgetItem.__init__(self, *args, **kwargs) self._checkpoint = None
def __init__(self, feature, parent=None, featureState=Qt.Unchecked): QTableWidgetItem.__init__(self, parent) self.isRootNode = False self.children = [] self.featureState = featureState
def __init__(self, text): QTableWidgetItem.__init__(self, text)
def __init__(self, string, download): QTableWidgetItem.__init__(self, string) self.download = download
def __init__(self, feature, parent=None, featureState=Qt.Unchecked): QTableWidgetItem.__init__(self, parent) self.isRootNode = False self.children = [] self.featureState = featureState