pdwidgets.widgets.digital_clock

Live digital clock label.

class pdwidgets.widgets.digital_clock.DigitalClock(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, text_height=16, scale=1)[source]

Bases: Label

Live-updating HH:MM:SS clock label.

update_time()[source]

Refresh the displayed time from the system clock.