Widgets

Various widgets used in Filers.

class filers.misc_widgets.CountDownTimer(**kwargs)

Bases: kivy.uix.boxlayout.BoxLayout

Widget that displays a countdown timer.

The background color of the timer. When the timer counts out, it is changed to generate a blinking effect.

count_end()

Stops the countdown. If the background was blinking, it’ll stop.

count_start()

Starts the counter to count down from the current value of counter. When the counter reaches zero, the background will blink.

Returns:‘normal’ if the counter failed, ‘down’ if it started the countdown.
counter

The current value of the counter, whether counting down, or paused. Defaults to zero.

counting

True when the timer is counting down, False when it’s paused or stopped. Read only. Defaults to False.

refresh(*largs)

Method that gets called at 0.1Hz during the countdown and at 0.33Hz when the countdown reached zero and the background blinks. It updates the background color and counter.