mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-09 20:40:02 +00:00
Fixed issues with updating of settings.
This commit is contained in:
parent
ebf5ac8116
commit
c3248aec0d
1 changed files with 0 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
import logging
|
import logging
|
||||||
from functools import partial
|
|
||||||
from PyQt6.QtWidgets import QWidget, QLabel, QLineEdit, QHBoxLayout, QSizePolicy, QSpacerItem
|
from PyQt6.QtWidgets import QWidget, QLabel, QLineEdit, QHBoxLayout, QSizePolicy, QSpacerItem
|
||||||
from nqrduck.module.module_view import ModuleView
|
from nqrduck.module.module_view import ModuleView
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@ class BaseSpectrometerView(ModuleView):
|
||||||
# Add a horizontal layout for the setting
|
# Add a horizontal layout for the setting
|
||||||
layout = QHBoxLayout()
|
layout = QHBoxLayout()
|
||||||
# Connect the editingFinished signal to the on_value_changed slot of the setting
|
# Connect the editingFinished signal to the on_value_changed slot of the setting
|
||||||
update_func = partial(setting.on_value_changed, line_edit.text())
|
|
||||||
line_edit.editingFinished.connect(lambda x=line_edit: setting.on_value_changed(x.text()))
|
line_edit.editingFinished.connect(lambda x=line_edit: setting.on_value_changed(x.text()))
|
||||||
# Add the label and the line edit to the layout
|
# Add the label and the line edit to the layout
|
||||||
layout.addItem(spacer)
|
layout.addItem(spacer)
|
||||||
|
|
Loading…
Reference in a new issue