Пример #1
0
    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
Пример #2
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
     self._editors = {}  # keep references on opened editors
Пример #3
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
Пример #4
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
Пример #5
0
 def __init__(self, dtype, parent=None):
     QItemDelegate.__init__(self, parent)
     self.dtype = dtype
Пример #6
0
 def __init__(self, dtype, parent=None):
     QItemDelegate.__init__(self, parent)
     self.dtype = dtype
Пример #7
0
 def __init__(self):
     QItemDelegate.__init__(self)