Settings.bindWritable

Create a binding between the writability of key in the settings object and the property property of object. The property must be boolean; "sensitive" or "visible" properties of widgets are the most likely candidates.

Writable bindings are always uni-directional; changes of the writability of the setting will be propagated to the object property, not the other way.

When the inverted argument is TRUE, the binding inverts the value as it passes from the setting to the object, i.e. property will be set to TRUE if the key is not writable.

Note that the lifecycle of the binding is tied to object, and that you can have only one binding per object property. If you bind the same property twice on the same object, the second binding overrides the first one.

class Settings
void
bindWritable
(
string key
,,
string property
,)

Parameters

key string

the key to bind

object ObjectG
property string

the name of a boolean property to bind

inverted bool

whether to 'invert' the value

Meta

Since

2.26