From d69b52ac8c879653331f0bfbee92b02ece6285e1 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 30 Jul 2021 14:22:51 -0400 Subject: [PATCH] Break health bar and pane layout into separate routines --- piker/ui/_forms.py | 157 +++++++++++++++++++++++++-------------------- 1 file changed, 89 insertions(+), 68 deletions(-) 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 (