Пример #1
0
    def __init__(self):
        super().__init__(Qt.Vertical)

        self._conns_editor = ConnectionsEditor()
        self._streams = Streams()
        self._control_vars = ControlVariables()

        cl = QHBoxLayout()
        cl.setContentsMargins(0, 0, 0, 0)
        cl.setSpacing(4)
        cl.addWidget(self._streams, 1)
        #cl.addWidget(self._control_vars, 3)

        cw = QWidget()
        cw.setLayout(cl)

        self.addWidget(self._conns_editor)
        self.addWidget(cw)

        self.setStretchFactor(0, 4)
Пример #2
0
    def __init__(self):
        super().__init__(Qt.Vertical)

        self._conns_editor = ConnectionsEditor()
        self._streams = Streams()
        self._control_vars = ControlVariables()

        cl = QHBoxLayout()
        cl.setContentsMargins(0, 0, 0, 0)
        cl.setSpacing(4)
        cl.addWidget(self._streams, 1)
        #cl.addWidget(self._control_vars, 3)

        cw = QWidget()
        cw.setLayout(cl)

        self.addWidget(self._conns_editor)
        self.addWidget(cw)

        self.setStretchFactor(0, 4)
Пример #3
0
    def __init__(self):
        super().__init__(Qt.Vertical)

        self._conns_editor = ConnectionsEditor()
        self._streams = Streams()
        self._event_map = EventMap()

        self.add_to_updaters(self._conns_editor, self._streams, self._event_map)

        cl = QHBoxLayout()
        cl.setContentsMargins(0, 0, 0, 0)
        cl.setSpacing(4)
        cl.addWidget(self._streams, 1)
        cl.addWidget(self._event_map, 1)

        cw = QWidget()
        cw.setLayout(cl)

        self.addWidget(self._conns_editor)
        self.addWidget(cw)

        self.setStretchFactor(0, 4)
Пример #4
0
class Components(QSplitter):

    def __init__(self):
        super().__init__(Qt.Vertical)

        self._conns_editor = ConnectionsEditor()
        self._streams = Streams()
        self._control_vars = ControlVariables()

        cl = QHBoxLayout()
        cl.setContentsMargins(0, 0, 0, 0)
        cl.setSpacing(4)
        cl.addWidget(self._streams, 1)
        #cl.addWidget(self._control_vars, 3)

        cw = QWidget()
        cw.setLayout(cl)

        self.addWidget(self._conns_editor)
        self.addWidget(cw)

        self.setStretchFactor(0, 4)

    def set_au_id(self, au_id):
        self._conns_editor.set_au_id(au_id)
        self._streams.set_au_id(au_id)
        self._control_vars.set_au_id(au_id)

    def set_ui_model(self, ui_model):
        self._conns_editor.set_ui_model(ui_model)
        self._streams.set_ui_model(ui_model)
        self._control_vars.set_ui_model(ui_model)

    def unregister_updaters(self):
        self._control_vars.unregister_updaters()
        self._streams.unregister_updaters()
        self._conns_editor.unregister_updaters()
Пример #5
0
class Components(QSplitter):
    def __init__(self):
        super().__init__(Qt.Vertical)

        self._conns_editor = ConnectionsEditor()
        self._streams = Streams()
        self._control_vars = ControlVariables()

        cl = QHBoxLayout()
        cl.setContentsMargins(0, 0, 0, 0)
        cl.setSpacing(4)
        cl.addWidget(self._streams, 1)
        #cl.addWidget(self._control_vars, 3)

        cw = QWidget()
        cw.setLayout(cl)

        self.addWidget(self._conns_editor)
        self.addWidget(cw)

        self.setStretchFactor(0, 4)

    def set_au_id(self, au_id):
        self._conns_editor.set_au_id(au_id)
        self._streams.set_au_id(au_id)
        self._control_vars.set_au_id(au_id)

    def set_ui_model(self, ui_model):
        self._conns_editor.set_ui_model(ui_model)
        self._streams.set_ui_model(ui_model)
        self._control_vars.set_ui_model(ui_model)

    def unregister_updaters(self):
        self._control_vars.unregister_updaters()
        self._streams.unregister_updaters()
        self._conns_editor.unregister_updaters()