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