From c4c49683339c4aa407cb05013697679d070c7976 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 96008e21a..5483a1789 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -339,12 +339,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()