Gtk.TryExpression¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gtk.TryExpression¶
- Bases:
- Abstract:
No
A
GtkExpressionthat 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:
Creates a
GtkExpressionwith an array of expressions.When evaluated, the
GtkTryExpressiontries to evaluate each of its expressions until it succeeds. If all expressions fail to evaluate, theGtkTryExpression’s evaluation fails as well.The value type of the expressions in the array must match.
New in version 4.22.