artview.core.core.Variable.change

Variable.change(value, strong=True)[source]

Change the Variable value and emit ‘ValueChanged’ signal.

Parameters:

value : :

New Value to be assigned to the variable.

[Optional] :

strong : bool, optional

Define if this is a strong or weak change. This is a somewhat subjective decision: strong is default.

A weak change should be used to indicate to the slot that the change should not trigger any costly computation. Reasons for this are: When initializing a variable, it is likely to change again shortly, or another more important variable is being changed as well etc.

Note

Defining how to respond to strong/weak changes is the responsibility of the slot, most can just ignore the difference, but the costly ones should be aware.

Notes

The arguments of the emitted signal are (self, value, strong).