def __init__(self, dtype, parent=None, font=None, minvalue=None, maxvalue=None): QItemDelegate.__init__(self, parent) self.dtype = dtype if font is None: font = get_font('arrayeditor') self.font = font self.minvalue = minvalue self.maxvalue = maxvalue # We must keep a count instead of the "current" one, because when # switching from one cell to the next, the new editor is created # before the old one is destroyed, which means it would be set to None # when the old one is destroyed. self.editor_count = 0
def __init__(self, parent=None): QItemDelegate.__init__(self, parent) self._editors = {} # keep references on opened editors
def __init__(self, parent=None): QItemDelegate.__init__(self, parent)
def __init__(self, dtype, parent=None): QItemDelegate.__init__(self, parent) self.dtype = dtype
def __init__(self): QItemDelegate.__init__(self)