Beispiel #1
0
    def _build_mapping(self):
        widget = QtWidgets.QWidget()
        v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=5,
                                     spacing=10)
        widget.setLayout(v_layout)
        self._tab_widget.addTab(widget, "Mapping")

        v_layout.addWidget(QtWidgets.QLabel('Channel and Item mapping takes '
                                            'precedence over name management.'))

        v_layout.addWidget(create_separator(ORIENTATION.HORIZONTAL))

        self._mapping = DataTreeAndSearchWidget(parent=self,
                                                facade=self._manager.facade)

        v_layout.addWidget(self._mapping)
Beispiel #2
0
def create_label(text, width=30):
    l = QtWidgets.QLabel(text)
    l.setFixedWidth(width)
    return l