param.Tuple#
- class param.Tuple(default=(0, 0), *, length=None, doc=None, label=None, precedence=None, instantiate=False, constant=False, readonly=False, pickle_default_value=True, allow_None=False, per_instance=True, allow_refs=False, nested_refs=False)[source]#
A tuple Parameter (e.g. (‘a’,7.6,[3,5])) with a fixed tuple length.
- __init__(default=(0, 0), *, length=None, doc=None, label=None, precedence=None, instantiate=False, constant=False, readonly=False, pickle_default_value=True, allow_None=False, per_instance=True, allow_refs=False, nested_refs=False)[source]#
Initialize a tuple parameter with a fixed length (number of elements). The length is determined by the initial default value, if any, and must be supplied explicitly otherwise. The length is not allowed to change after instantiation.
Methods
__init__
([default, length, doc, label, ...])Initialize a tuple parameter with a fixed length (number of elements).
deserialize
(value)Given a serializable Python value, return a value that the parameter can be set to
schema
([safe, subset, mode])serialize
(value)Given the parameter value, return a Python value suitable for serialization
Attributes
length
allow_None
allow_refs
constant
default
doc
instantiate
label
name
nested_refs
owner
per_instance
pickle_default_value
precedence
readonly
rx
The reactive namespace.
watchers