rq_getattr

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

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

Return type

None

pyreaqtive.rq_getattr.reactivize(obj_type)

Reactivize method

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

Parameters

obj_type (type) – object type to reactivize

Return type

None

pyreaqtive.rq_getattr.rq_getattr(obj, attribute_name)

Reactive Get Attribute

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

Parameters
  • obj (object) – object to get the attribute from

  • attribute_name (str) – name of the attribute

Returns

reactive object

Return type

RQObject