forked from M-Labs/artiq
1
0
Fork 0

moninj: add underscore to dac channel labels

This commit is contained in:
Simon Renblad 2024-07-12 17:38:40 +08:00 committed by Sébastien Bourdeauducq
parent 099a0869d9
commit 86a8d2d87a
1 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ class _DACWidget(QtWidgets.QFrame):
grid.setHorizontalSpacing(0)
grid.setVerticalSpacing(0)
self.setLayout(grid)
label = QtWidgets.QLabel("{} ch{}".format(title, channel))
label = QtWidgets.QLabel("{}_ch{}".format(title, channel))
label.setAlignment(QtCore.Qt.AlignCenter)
grid.addWidget(label, 1, 1)
@ -373,7 +373,7 @@ class _DACWidget(QtWidgets.QFrame):
return (self.title, self.channel)
def to_model_path(self):
return "dac/{} ch{}".format(self.title, self.channel)
return "dac/{}_ch{}".format(self.title, self.channel)
_WidgetDesc = namedtuple("_WidgetDesc", "uid comment cls arguments")