forked from M-Labs/artiq
1
0
Fork 0

moninj: adjust DAC widget label alignment

This commit is contained in:
Simon Renblad 2024-07-05 15:40:18 +08:00
parent 3df13eb1c6
commit c4c4968333
1 changed files with 2 additions and 3 deletions

View File

@ -339,12 +339,11 @@ class _DACWidget(_MoninjWidget):
self.offset_dacs = offset_dacs self.offset_dacs = offset_dacs
self.value = QtWidgets.QLabel() 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.addWidget(self.value, 2, 1, 6, 1)
self.grid.setRowStretch(1, 1) self.grid.setRowStretch(1, 1)
self.grid.setRowStretch(2, 0) self.grid.setRowStretch(2, 1)
self.grid.setRowStretch(3, 1)
self.refresh_display() self.refresh_display()