[SCRIPT] Updated

This commit is contained in:
t
2025-03-31 20:14:11 +02:00
parent 810f54cb65
commit 314a27eb42
472 changed files with 11721 additions and 921 deletions
@@ -0,0 +1,30 @@
from ignis.widgets import Widget
from .row import SettingsRow
from typing import Callable
from ignis.gobject import Binding
class SpinRow(SettingsRow):
def __init__(
self,
value: int | Binding = 0,
on_change: Callable | None = None,
min: int = 0,
max: int = 100,
step: int = 1,
width: int = 0,
**kwargs,
):
super().__init__(**kwargs)
self._spin_button = Widget.SpinButton(
value=value,
on_change=on_change,
min=min,
max=max,
halign="end",
valign="center",
width_request=width,
hexpand=True,
step=step,
)
self.child.append(self._spin_button)