__init__(self,
id,
label="",
value=None,
min=None,
max=None,
step=None,
callback=None,
persistent=False,
expand_policy=None)
(Constructor)
| source code |
Integer Spin constructor.
-
- Parameters:
id - unique identifier.
label - what to show on a label on the left side of the widget.
value - initial content.
min - minimum value. If None, default_min will be used.
max - maximum value. If None, default_max will be used.
step - step to use to decrement/increment using buttons.
callback - function (or list of functions) that will be called when this
widget have its data changed. Function will receive as
parameters:
-
App reference
-
Widget reference
-
new value
persistent - if this widget should save its data between sessions.
expand_policy - how this widget should fit space, see ExpandPolicy.Policy.Rule.
- Overrides:
Spin.__init__
|