MCPcopy Create free account
hub / github.com/LabPy/lantz / SetupTestWidget

Class SetupTestWidget

lantz/ui/widgets.py:600–618  ·  view source on GitHub ↗

Widget to control multiple drivers. :param parent: parent widget. :param targets: iterable of driver object to map.

Source from the content-addressed store, hash-verified

598
599
600class SetupTestWidget(QtGui.QWidget):
601 """Widget to control multiple drivers.
602
603 :param parent: parent widget.
604 :param targets: iterable of driver object to map.
605 """
606
607 def __init__(self, parent, targets):
608 super().__init__(parent)
609
610 layout = QtGui.QHBoxLayout(self)
611
612 tab_widget = QtGui.QTabWidget(self)
613 tab_widget.setTabsClosable(False)
614 for target in targets:
615 widget = DriverTestWidget(parent, target)
616 tab_widget.addTab(widget, target.name)
617
618 layout.addWidget(tab_widget)
619
620
621def connect_feat(widget, target, feat_name=None, feat_key=MISSING):

Callers 1

start_test_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected