示例#1
0
文件: delegates.py 项目: kostafey/jal
    def __init__(self, parent=None):
        QStyledItemDelegate.__init__(self, parent)

        self.timestamp_delegate = TimestampDelegate()
        self.float_delegate = FloatDelegate(2)
        self.default = QStyledItemDelegate()

        self.delegates = {}
示例#2
0
文件: delegates.py 项目: kostafey/jal
 def __init__(self,
              tolerance=None,
              allow_tail=True,
              colors=False,
              parent=None):
     self._parent = parent
     QStyledItemDelegate.__init__(self, parent)
     try:
         self._tolerance = int(tolerance)
     except (ValueError, TypeError):
         self._tolerance = self.DEFAULT_TOLERANCE
     self._allow_tail = allow_tail
     self._colors = colors
     self._color = None
示例#3
0
 def __init__(self, grid_data):
     QStyledItemDelegate.__init__(self)
     self.grid_data = grid_data
示例#4
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
示例#5
0
文件: delegates.py 项目: kostafey/jal
 def __init__(self, display_format='%d/%m/%Y %H:%M:%S', parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self._format = display_format
示例#6
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
示例#7
0
 def __init__(self, parent=None, *args):
     QStyledItemDelegate.__init__(self, parent, *args)
 def __init__(self):
     ## Constructor
     QStyledItemDelegate.__init__(self)