Variable#

class ignis.variable.Variable(*args: Any, **kwargs: Any)#

Bases: IgnisGObject

Simple class that holds a value.

Properties
  • value (Any, read-write, optional): A value.

Example usage:

from ignis.variable import Variable

var = Variable(value=10)
var.connect("notify::value", lambda x, y: print("Value changed!: ", x.value))

var.value = 20