Add get led_script_type
This commit is contained in:
parent
374360150f
commit
f506d4310c
@ -107,6 +107,12 @@ class ScriptSelection(QGroupBox):
|
||||
else:
|
||||
return int(self.w_constant_value.value())
|
||||
|
||||
def get_script_type(self):
|
||||
if self.radio_script_file.isChecked():
|
||||
return "file"
|
||||
else:
|
||||
return "constant"
|
||||
|
||||
|
||||
class MeasurementSettings(QWidget):
|
||||
"""
|
||||
@ -163,5 +169,7 @@ class MeasurementSettings(QWidget):
|
||||
return self.w_form.get_value(key)
|
||||
elif key == "led_script":
|
||||
return self.w_led_script.get_script()
|
||||
elif key == "led_script_type":
|
||||
return self.w_led_script.get_script_type()
|
||||
else:
|
||||
raise ValueError(f"Unknown key: {key}")
|
Loading…
x
Reference in New Issue
Block a user