pdwidgets.widgets.slider

Slider widget.

class pdwidgets.widgets.slider.Slider(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=0.0, padding=None, vertical=False, reverse=False, knob_color=None, step=0.1)[source]

Bases: ProgressBar

Draggable 0–1 value control with a circular knob.

draw(_=None)[source]

Draw the slider, including the progress bar and the circular knob.

event_callback(data, event)[source]

Handle user input events like clicks, dragging, and mouse movements.

adjust_value(value)[source]

Adjust the slider value by one step in the specified direction.