RQObject¶
- class pyreaqtive.models.rqobject.RQObject(instance: object)¶
Bases:
pyreaqtive.models.rqmodel.RQModelReactive Object Model
Represents any object, without a strict type
- __init__(instance: object)¶
Constructor
- Parameters
instance – Initial object
- get() → object¶
Get value of the model
- Returns
object of the model
- Return type
object
- set(instance: object) → None¶
Set value of model
Will propagate the change to the widgets linked to the model
- Parameters
instance – new value of the model
- __str__() → str¶
Get value of the model in string format
- Returns
value of the model converted to string
- Return type
str
- __int__() → int¶
Get value of the model in int format
- Returns
value of the model converted to int
- Return type
str
- Raises
TypeError –
- __float__() → float¶
Get value of the model in float format
- Returns
value of the model converted to float
- Return type
str
- Raises
TypeError –