RQObject

class pyreaqtive.models.rqobject.RQObject(instance)

Bases: pyreaqtive.models.rqmodel.RQModel

Reactive Object Model

Represents any object, without a strict type

Parameters

instance (object) –

__init__(instance)

Constructor

Parameters

instance (object) – Initial object

get()

Get value of the model

Returns

object of the model

Return type

object

set(instance)

Set value of model

Will propagate the change to the widgets linked to the model

Parameters

instance (object) – new value of the model

Return type

None

__str__()

Get value of the model in string format

Returns

value of the model converted to string

Return type

str

__int__()

Get value of the model in int format

Returns

value of the model converted to int

Return type

str

Raises

TypeError

__float__()

Get value of the model in float format

Returns

value of the model converted to float

Return type

str

Raises

TypeError