From f9a447e8e0fe41c693d6446d7547c6809c7b6c79 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 11 Apr 2024 11:20:22 +0800 Subject: [PATCH] entries: fix EnumerationEntry disable_scroll_wheel --- artiq/gui/entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gui/entries.py b/artiq/gui/entries.py index dd7231331..43daa7a5b 100644 --- a/artiq/gui/entries.py +++ b/artiq/gui/entries.py @@ -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)