ObjectExpression

class ObjectExpression(*args, **kwargs)

Superclasses: Expression

A GObject value in a GtkExpression.

Constructors

class ObjectExpression
classmethod new(object: Object) ObjectExpression

Creates an expression evaluating to the given object with a weak reference.

Once the object is disposed, it will fail to evaluate.

This expression is meant to break reference cycles.

If you want to keep a reference to object, use new.

Parameters:

object – object to watch

Methods

class ObjectExpression
get_object() Object | None

Gets the object that the expression evaluates to.