2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 19:58:25 +08:00

moninj: adjust DAC widget label alignment

This commit is contained in:
Simon Renblad 2024-07-05 15:40:18 +08:00 committed by Sébastien Bourdeauducq
parent 6044d810ca
commit 9c1482aa69

View File

@ -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()