You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: code improvements related to min/man calculations
Refactored in "AnalogGaugeWidget" class a few conditional
statements using Python's built-in "min()" and "max()"
functions with clear comments.
The new code is more Pythonic & readable.
1. "rescale_method()" method.
2. "update_value()" method - implemented a classic value
"clamping" operation (constraining a value to stay within a
min/max range). This is a well-known Python idiom for clamping values.
3. "set_MinValue()" & "set_MinValue()" methods.
4. "set_scala_main_count()" method.
Co-authored-by: Cursor AI
Signed-off-by: Pavel Bar <pbar@redhat.com>
0 commit comments