aside.gui.common module¶
Contains common functions and variables for GUI layout.
- get_icon(name: str) → QIcon[source]¶
Create a
QIconfrom an svg resource.- Parameters
name – The name of svg resource (without file extension).
- Returns
The created
QIcon.
- setup_animation(anim: QVariantAnimation, duration: int, start_value: QVariant, end_value: QVariant, on_change_value: Callable[QVariant, None], easing_curve: QEasingCurve = 6) → None[source]¶
Set parameters of the specified animation.
- Parameters
anim – Animation that is going to be set up.
duration – Duration of animation in msec.
start_value – Initial value of widget property, which will be animated.
end_value – Resulting value of widget property, which will be animated.
on_change_value – Callable, executed when animated value has changed.
easing_curve – Easing curve for animation.