From 9ce037adff32c951cb68e97a43f125be5910efba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 6 Jul 2018 16:40:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=20=D0=BC=D0=B5=D0=B6=D0=B4?= =?UTF-8?q?=D1=83=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B0=D0=BC=D0=B8?= =?UTF-8?q?=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/consolegui/application/mainframe.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/consolegui/application/mainframe.py b/pym/consolegui/application/mainframe.py index e030537..4de0b71 100755 --- a/pym/consolegui/application/mainframe.py +++ b/pym/consolegui/application/mainframe.py @@ -1663,6 +1663,7 @@ class MainFrame(qt.QWidget): self.view_dict[field.name] = self.table_widget self.label_dict[field.name] = LabelWordWrap(field.label, self) + self.label_dict[field.name].setContentsMargins(0, 0, 0, 0) self.table_dict[field.name] = field self.table_widget.itemClicked.connect(self.expert_remove(field.name)) @@ -1689,7 +1690,7 @@ class MainFrame(qt.QWidget): if brief: widget_for_grid.setStyleSheet("background: transparent;") wfg_layout = qt.QVBoxLayout(widget_for_grid) - wfg_layout.setSpacing(0) + wfg_layout.setSpacing(10) wfg_layout.setAlignment(qt.Qt.AlignTop) wfg_layout.setContentsMargins(0, 0, 0, 0) # add 2 button if field type = writable @@ -1698,7 +1699,8 @@ class MainFrame(qt.QWidget): hh.setSectionsClickable(False) unit_widget = qt.QWidget(self) - unit_widget.setFixedHeight(40) + unit_widget.setFixedHeight(32) + wfg_layout.setAlignment(qt.Qt.AlignTop) unit_layout = qt.QHBoxLayout(unit_widget) unit_layout.setContentsMargins(0, 0, 0, 0) unit_layout.setSpacing(3)