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.

Parameters:

**kwargs -- Properties to set.

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

The current value.

gproperty min: float#
  • read-write

Minimum value.

gproperty max: float#
  • read-write

Maximum value.

gproperty step: float#
  • read-write

Step increment.

gproperty on_change: Callable | None#
  • read-write

The function to call when the value changes.