Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, unpacked_directory='', **kwargs):
super(RunTab, self).__init__(**kwargs)
layout = QtWidgets.QGridLayout()
layout.addWidget(QtWidgets.QLabel("Experiment directory:"), 0, 0)
self.directory_widget = QtWidgets.QLineEdit(unpacked_directory)
self.directory_widget.editingFinished.connect(self._directory_changed)
layout.addWidget(self.directory_widget, 0, 1)
browse = QtWidgets.QPushButton("Browse")
browse.clicked.connect(self._browse)
layout.addWidget(browse, 0, 2)
layout.addWidget(QtWidgets.QLabel("Unpacker:"), 1, 0,
QtCore.Qt.AlignTop)
self.unpacker_widget = QtWidgets.QLabel("-")
layout.addWidget(self.unpacker_widget, 1, 1, 1, 2)
layout.addWidget(QtWidgets.QLabel("Input/output files:"), 2, 0,