2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 07:56:30 +08:00

entries: fix EnumerationEntry disable_scroll_wheel

This commit is contained in:
Simon Renblad 2024-04-11 11:20:22 +08:00 committed by Sébastien Bourdeauducq
parent c4892cf285
commit f9a447e8e0

View File

@ -202,7 +202,6 @@ class EnumerationEntry(QtWidgets.QWidget):
def __init__(self, argument):
QtWidgets.QWidget.__init__(self)
disable_scroll_wheel(self)
layout = QtWidgets.QHBoxLayout()
self.setLayout(layout)
procdesc = argument["desc"]
@ -221,6 +220,7 @@ class EnumerationEntry(QtWidgets.QWidget):
self.btn_group.idClicked.connect(submit)
else:
self.combo_box = QtWidgets.QComboBox()
disable_scroll_wheel(self.combo_box)
self.combo_box.addItems(choices)
idx = choices.index(argument["state"])
self.combo_box.setCurrentIndex(idx)