rq_getattr

pyreaqtive.rq_getattr.new__setattr__(self, key, value)None

Set Attribute Replacement

Captures changes in the attributes and reports them to the rq_reactive_attributes RQObject models

Parameters
  • self – object to capture

  • key – key name of the attribute

  • value – new value of the attribute

pyreaqtive.rq_getattr.reactivize(obj_type: type)None

Reactivize method

Injects the set attribute replacement to a object type and creates a placeholder for the reactive attributes

Parameters

obj_type – object type to reactivize

pyreaqtive.rq_getattr.rq_getattr(obj: object, attribute_name: str)pyreaqtive.models.rqobject.RQObject

Reactive Get Attribute

Returns an RQObject that is linked to a object attribute. Changes are two-way propagated

Parameters
  • obj – object to get the attribute from

  • attribute_name – name of the attribute

Returns

reactive object

Return type

RQObject