Skip to content

Gtk.ExpressionWatch

record (struct)

An opaque structure representing a watched GtkExpression.

The contents of GtkExpressionWatch should only be accessed through the provided API.

Methods

evaluate

def evaluate(self, value: GObject.Value) -> bool

Evaluates the watched expression and on success stores the result in value.

This is equivalent to calling Expression.evaluate with the expression and this pointer originally used to create watch.

Parameters:

  • value — an empty GValue to be set

ref

def ref(self) -> ExpressionWatch

Acquires a reference on the given GtkExpressionWatch.

unref

def unref(self) -> None

Releases a reference on the given GtkExpressionWatch.

If the reference was the last, the resources associated to self are freed.

unwatch

def unwatch(self) -> None

Stops watching an expression.

See Expression.watch for how the watch was established.