Gtk.TryExpression

g Gtk.Expression Gtk.Expression Gtk.TryExpression Gtk.TryExpression Gtk.Expression->Gtk.TryExpression

Subclasses:

None

Methods

Inherited:

Gtk.Expression (7)

class

new (expressions)

Virtual Methods

None

Fields

None

Class Details

class Gtk.TryExpression
Bases:

Gtk.Expression

Abstract:

No

A GtkExpression that tries to evaluate each of its expressions until it succeeds.

If all expressions fail to evaluate, the GtkTryExpression’s evaluation fails as well.

New in version 4.22.

classmethod new(expressions)[source]
Parameters:

expressions ([Gtk.Expression]) – The array of expressions

Returns:

a new GtkExpression

Return type:

Gtk.TryExpression

Creates a GtkExpression with an array of expressions.

When evaluated, the GtkTryExpression tries to evaluate each of its expressions until it succeeds. If all expressions fail to evaluate, the GtkTryExpression’s evaluation fails as well.

The value type of the expressions in the array must match.

New in version 4.22.