diff --git a/piker/ui/_forms.py b/piker/ui/_forms.py index acd83d63..c63bccc0 100644 --- a/piker/ui/_forms.py +++ b/piker/ui/_forms.py @@ -32,6 +32,9 @@ from PyQt5.QtWidgets import ( QLabel, QComboBox, QLineEdit, + QHBoxLayout, + QVBoxLayout, + QFormLayout, QProgressBar, QSizePolicy, QStyledItemDelegate, @@ -168,23 +171,21 @@ class FieldsForm(QWidget): QSizePolicy.Expanding, QSizePolicy.Expanding, ) - # self.setMaximumHeight(30) - # self.setMaximumWidth(166) - self.vbox = QtGui.QVBoxLayout(self) + self.vbox = QVBoxLayout(self) self.vbox.setAlignment(Qt.AlignTop) - self.vbox.setContentsMargins(0, 4, 4, 0) + self.vbox.setContentsMargins(0, 4, 4, 4) self.vbox.setSpacing(0) # split layout for the (