SpinButton#

class ignis.widgets.Widget.SpinButton(min: int | None = None, max: int | None = None, **kwargs)#

Bases: Gtk.SpinButton

A widget that allows the user to increment or decrement the displayed value within a specified range.

Widget.SpinButton(
    min=0,
    max=100,
    step=1,
    value=50,
    on_change=lambda x, value: print(value)
)
property value: float#
  • optional, read-write

The current value.

property min: float#
  • optional, read-write

Minimum value.

property max: float#
  • optional, read-write

Maximum value.

property step: float#
  • optional, read-write

Step increment.

property on_change: Callable | None#
  • optional, read-write

The function to call when the value changes.