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

View File

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