pdwidgets.widgets.badge

Status badge widget.

class pdwidgets.widgets.badge.Badge(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, size=12)[source]

Bases: Widget

Small status dot or rounded count pill.

draw(_=None)[source]

Draw the badge as a dot (no value) or a rounded pill (with text).