func_sketch._gui.curve_config_widget module#
Class of widgets to configure curves.
- class func_sketch._gui.curve_config_widget.CurveConfigWidget(**kwargs: object)#
Bases:
BoxLayoutClass of widgets to configure curves.
Note
Following properties can be used:
expression_text (writable)
curve_name (writable)
curve_color (writable)
error_message (writable)
curve_config (writable)
- _get_curve_config() CurveConfig#
Get the curve configuration.
- Returns:
Curve configuration.
- _set_curve_config(curve_config: CurveConfig) None#
Set the curve configuration.
- Parameters:
curve_config – Curve configuration.
- _sync_expression_text_from_child_to_parent(_instance: object, _value: object) None#
Sync expression text from child to parent.
- _sync_expression_text_from_parent_to_child(_instance: object, _value: object) None#
Sync expression text from parent to child.
- curve_color#
Color of the curve.
- curve_config#
Curve configuration.
- curve_name#
Name of the curve.
- error_message#
Error message related to the curve configuration.
- expression_text#
Text of the function expression.
- expression_text_input#
TextInput widget for the function expression.
- on_expression_text_input(_instance: object, value: PlainTextInput | None) None#
Callback when the expression_text_input property is set.