qudi.util.widgets.loading_indicator
This file contains custom QWidgets to show (animated) loading indicators.
Classes
|
Simple circular loading indicator. |
- class qudi.util.widgets.loading_indicator.CircleLoadingIndicator(*args, cycle_time=1.2, indicator_length=960, indicator_width_ratio=0.2, **kwargs)[source]
Bases:
PySide2.QtWidgets.QWidgetSimple circular loading indicator. You can customize cycle period, indicator arc length and width. Animation will automatically start (stop) upon showing (hiding) the widget. The widget can be arbitrarily resized but the actual indicator will always maintain 1:1 aspect ratio and will be centered. The color of the indicator is chosen to be the current palette highlight color.
Indicator length must be specified as integer value in 1/16th of a degree. Indicator width ratio can be any value 0 < x <= 0.5
- __init__(*args, cycle_time=1.2, indicator_length=960, indicator_width_ratio=0.2, **kwargs)[source]
- Parameters:
- cycle_timefloat
The animation time in seconds for a full cycle.
- indicator_lengthint
Length of the indicator arc in 1/16th of a degree.
- indicator_width_ratiofloat
Ratio of the indicator arc width with respect to the widget size.
- Returns:
- None
(or specify the return type and description if the function returns something)
- indicator_position = <PySide2.QtCore.Property object>
- staticMetaObject = <PySide2.QtCore.QMetaObject object>