Skip to content

spinner

pdwidgets.widgets.spinner

Busy spinner widget.

Spinner(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=0, padding=None, period_ms=80)

Bases: Widget

Animated circular busy indicator.

Animated circular busy indicator drawn with framebuf arcs.

Call :meth:start / :meth:stop to drive the spin via the display task list. value holds the current rotation angle in degrees.

draw(_=None)

Draw a partial ring whose start angle tracks value.

start()

Begin spinning.

stop()

Stop spinning and hide.