forked from M-Labs/artiq
entries: fix EnumerationEntry disable_scroll_wheel
This commit is contained in:
parent
c4892cf285
commit
f9a447e8e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user