def __init__(self, parent: QTableView): QItemDelegate.__init__(self, parent) self.view = parent self.background_color = Qt.white p = self.view.palette() if p: self.background_color = p.color(QPalette.Active, p.Background)
def __init__(self, parent=None, *args): QItemDelegate.__init__(self, parent, *args) # pixmaps for curve icons self.curve_pixmaps = { openshot.BEZIER: QPixmap(os.path.join(info.IMAGES_PATH, "keyframe-%s.png" % openshot.BEZIER)), openshot.LINEAR: QPixmap(os.path.join(info.IMAGES_PATH, "keyframe-%s.png" % openshot.LINEAR)), openshot.CONSTANT: QPixmap(os.path.join(info.IMAGES_PATH, "keyframe-%s.png" % openshot.CONSTANT)) }
def __init__(self, parent=None, *args): QItemDelegate.__init__(self, parent, *args) # pixmaps for curve icons self.curve_pixmaps = { openshot.BEZIER: QPixmap(":/curves/keyframe-%s.png" % openshot.BEZIER), openshot.LINEAR: QPixmap(":/curves/keyframe-%s.png" % openshot.LINEAR), openshot.CONSTANT: QPixmap(":/curves/keyframe-%s.png" % openshot.CONSTANT), }
def __init__(self, parent): QItemDelegate.__init__(self, parent) checkboxRect = QRect( QApplication.style().subElementRect( QStyle.SE_CheckBoxIndicator, QStyleOptionButton(), None ) ) self.checkboxHalfWidth = int(checkboxRect.width() / 2)
def __init__(self, tblMat, materialCol, doseCol=-1, selected_detname=None, editable=False): QItemDelegate.__init__(self) self.tblMat = tblMat self.matCol = materialCol self.doseCol = doseCol self.editable = editable self.selected_detname = selected_detname
def __init__(self, parent, img_dir: str): QItemDelegate.__init__(self, parent, ) self.img_dir = img_dir self.save_action = QAction('Save', self) self.set_icon(self.save_action, "*****@*****.**") self.save_action.triggered.connect(self.on_save_data) self.undo_action = QAction('Revert', self) self.set_icon(self.undo_action, "*****@*****.**") self.undo_action.triggered.connect(self.on_revert_data) self.editor = None self.old_data = '' self.cur_item_index = None self.data_history: Dict[QModelIndex, List[str]] = {}
def __init__(self, parent, width, height): QItemDelegate.__init__(self, parent) self.itemWidth = width self.itemHeight = height self.checkedIcon = None self.partiallyCheckedIcon = None self.uncheckedIcon = None self.pixmapUnckecked = QPixmap(self.itemWidth, self.itemHeight) self.drawPixmapForUnckecked() self.pixmapCkecked = QPixmap(self.itemWidth, self.itemHeight) self.drawPixmapForCkecked() self.pixmapPartiallyChecked = QPixmap(self.itemWidth, self.itemHeight) self.drawPixmapForPartiallyChecked() self.drawPixmapForDisabled()
def __init__(self, tblMat, materialCol, intensityCol=-1, unitsCol=2, selected_detname=None, editable=False, auto_s=False): QItemDelegate.__init__(self) self.tblMat = tblMat self.matCol = materialCol self.intensityCol = intensityCol self.unitsCol = unitsCol self.editable = editable self.selected_detname = selected_detname self.auto_s = auto_s self.settings = RaseSettings()
def __init__(self, parent, choices=None, select_option=True): QItemDelegate.__init__(self, parent) self.choices = choices or [] if select_option: self.choices = ["--Select--"] + self.choices
def __init__(self, parent, precision=6, allowed_range=(-1000., 1000.), default=0.): QItemDelegate.__init__(self, parent) self.precision = precision self.allowed_range = allowed_range self._default = default
def __init__(self, parent=None): QItemDelegate.__init__(self, parent) self.comboDel = ComboDelegate()
def __init__(self, parent): QItemDelegate.__init__(self, parent) self.parent = parent
def __init__(self, decimals, parent=None): QItemDelegate.__init__(self, parent=parent) self.nDecimals = decimals
def __init__(self): QItemDelegate.__init__(self)
def __init__(self, parent=None, *args): QItemDelegate.__init__(self, parent, *args)
def __init__(self, max_characters: int = 10, parent=None): QItemDelegate.__init__(self, parent) self.max_char = max_characters
def __init__(self, parent, values: List[str]): QItemDelegate.__init__(self, parent) self.values = values
def __init__(self, parent, data=None): QItemDelegate.__init__(self, parent) self.data = data or []
def __init__(self, owner): QItemDelegate.__init__(self, owner)
def __init__(self, data: list): QItemDelegate.__init__(self) self.data = data
def __init__(self, parent: QTableView): QItemDelegate.__init__(self, parent)
def __init__(self, tblCorr, isotopeCol, editable=False): QItemDelegate.__init__(self) self.tblCorr = tblCorr self.isotopeCol = isotopeCol self.editable = editable
def __init__(self, parent): QItemDelegate.__init__(self, parent) self.icon = QIcon( "C:/Users/ZZZZZZ/Desktop/projeto_dashboardApp/src/icons/tab_icon.png" )
def __init__(self, parent): # parent является обязательным аргументом для делегата # так как мы ссылаемся на него в методе paint (см ниже) #self.__c=Communicate() #self.clicked=self.__c.clicked QItemDelegate.__init__(self, parent)
def __init__(self, item_list: list, parent=None): QItemDelegate.__init__(self, parent) self.item_list = item_list
def __init__(self, parent=None): QItemDelegate.__init__(self, parent)
def __init__(self, parent, Callable, buttonName, data=None): QItemDelegate.__init__(self, parent) self.data = data or {} self.buttonName = buttonName or "" self.Callable = Callable
def __init__(self, app_data: DataStorage, parent=None): QItemDelegate.__init__(self, parent) self.app_data = app_data
def __init__(self, parent, items): self.items = items QItemDelegate.__init__(self, parent)
def __init__(self, parent=None): QItemDelegate.__init__(self, parent) self.chkboxSize = 19 #?!
def __init__(self, tblInfluence, parent=None): QItemDelegate.__init__(self, parent) self.tblInfluences = tblInfluence
def __init__(self, parent, items, editable = False): self.items = items self.editable = editable QItemDelegate.__init__(self, parent)