pdwidgets.widgets.number_stepper

Numeric stepper widget.

class pdwidgets.widgets.number_stepper.NumberStepper(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=0, padding=None, step=1, minimum=None, maximum=None, number_format='{}')[source]

Bases: Widget

Bounded numeric stepper with - / + buttons.

changed()[source]

Clamp the value to the configured bounds and refresh the display.