From 9c1482aa696bbfc5025a19ae9a8f673843f415e9 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 5 Jul 2024 15:40:18 +0800 Subject: [PATCH] moninj: adjust DAC widget label alignment --- artiq/dashboard/moninj.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index f7d7343c3..bd3051aac 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -338,12 +338,11 @@ class _DACWidget(_MoninjWidget): self.offset_dacs = offset_dacs self.value = QtWidgets.QLabel() - self.value.setAlignment(QtCore.Qt.AlignCenter) + self.value.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.grid.addWidget(self.value, 2, 1, 6, 1) self.grid.setRowStretch(1, 1) - self.grid.setRowStretch(2, 0) - self.grid.setRowStretch(3, 1) + self.grid.setRowStretch(2, 1) self.refresh_display()