qudi.util.widgets.loading_indicator

This file contains custom QWidgets to show (animated) loading indicators.

Classes

CircleLoadingIndicator(*args[, cycle_time, ...])

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.QWidget

Simple 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)

hideEvent(self, event: PySide2.QtGui.QHideEvent) None[source]
indicator_position = <PySide2.QtCore.Property object>
paintEvent(self, event: PySide2.QtGui.QPaintEvent) None[source]
resizeEvent(self, event: PySide2.QtGui.QResizeEvent) None[source]
showEvent(self, event: PySide2.QtGui.QShowEvent) None[source]
sizeHint(self) PySide2.QtCore.QSize[source]
staticMetaObject = <PySide2.QtCore.QMetaObject object>