Esempio n. 1
0
    def __init__(self, manager=None, parent=None):
        AbstractListener.__init__(self)
        Splitter.__init__(self, parent=parent)

        if manager is None:
            self._manager = ControlManager()
        else:
            self._manager = manager

        self.model = ControlModel(self._manager)

        self.view = ControlView()
        self.view.setModel(self.model)
        self.view.controlsSelected.connect(self.on_controls_selected)

        self.model.rowsInserted.connect(self.view.onRowsInserted)

        self.addWidget(self.view)

        self._i = 1

        self._index = None
        self._widget_edit = None
Esempio n. 2
0
    def __init__(self, manager=None, parent=None):
        AbstractListener.__init__(self)
        Splitter.__init__(self, parent=parent)

        if manager is None:
            self._manager = ControlManager()
        else:
            self._manager = manager

        self.model = ControlModel(self._manager)

        self.view = ControlView()
        self.view.setModel(self.model)
        self.view.controlsSelected.connect(self.on_controls_selected)

        self.model.rowsInserted.connect(self.view.onRowsInserted)

        self.addWidget(self.view)

        self._i = 1

        self._index = None
        self._widget_edit = None
Esempio n. 3
0
    def __init__(self):
        Splitter.__init__(self)
        self._applets = {}

        self._action_add_applet = QtGui.QAction('Add applet', self)
        self._action_add_applet.triggered.connect(self._on_add_applet_triggered)