guipy.components.slider

Module Contents

Classes

Slider

Slider component for user interactions with drag and value setting

class guipy.components.slider.Slider(width, height, thickness=2, radius=10, initial_val=0)

Bases: guipy.components._component.Component

Slider component for user interactions with drag and value setting

update(rel_mouse, events)

Updates slider logic

Parameters
  • rel_mouse – relative mouse position based on slider position

  • events – Pygame event list