Example #1
0
    def __init__(self):
        QtGui.QStandardItemModel.__init__(self)
        self._lst = list('abc')
        for l in self._lst:
            self.appendRow(QtGui.QStandardItem(l))

        # Define all type of data managed by this model
        add_drag_format(self, "custom/data", icon=":/images/resources/openalealogo.png")
Example #2
0
    def __init__(self):
        QtGui.QStandardItemModel.__init__(self)
        self._data = {}
        self._root_item = None
        self._project = None

        add_drag_format(self, 'openalealab/data')
        add_drag_format(self, 'openalealab/model')
Example #3
0
    def __init__(self):
        QtGui.QStandardItemModel.__init__(self)
        self._lst = list('abc')
        for l in self._lst:
            self.appendRow(QtGui.QStandardItem(l))

        # Define all type of data managed by this model
        add_drag_format(self,
                        "custom/data",
                        icon=":/images/resources/openalealogo.png")
Example #4
0
    def __init__(self, manager=None):
        QtGui.QStandardItemModel.__init__(self)
        AbstractListener.__init__(self)

        self._headers = [u'Name', u'Value']
        self.setHorizontalHeaderLabels(self._headers)

        self._control_index = {}
        self._index_control = {}
        self._manager = None
        self.set_manager(manager)

        add_drag_format(self, "openalealab/control")