forked from M-Labs/artiq
moninj: adjust DAC widget label alignment
This commit is contained in:
parent
3df13eb1c6
commit
c4c4968333
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue