From 8440fd8172f85ae76b4ec92c72df6d7d809f1e59 Mon Sep 17 00:00:00 2001 From: jupfi Date: Thu, 13 Jul 2023 11:14:50 +0200 Subject: [PATCH] Implemented change of duration length. --- src/nqrduck_pulseprogrammer/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nqrduck_pulseprogrammer/view.py b/src/nqrduck_pulseprogrammer/view.py index f5cc85f..1330455 100644 --- a/src/nqrduck_pulseprogrammer/view.py +++ b/src/nqrduck_pulseprogrammer/view.py @@ -93,7 +93,7 @@ class PulseProgrammerView(ModuleView): # Add a label for the unit unit_label = QLabel("µs") # Connect the editingFinished signal to the on_value_changed slot of the setting - # line_edit.editingFinished.connect(lambda: setting.on_value_changed(line_edit.text())) + line_edit.editingFinished.connect(lambda x=line_edit: self.module.model.pulse_sequence.events[event].on_duration_changed(x.text())) # Add the label and the line edit to the layout event_layout = QHBoxLayout() event_layout.addWidget(event_name)