ClosureExpression#
- class ClosureExpression(*args, **kwargs)#
Superclasses: Expression
An expression using a custom GClosure to compute the value from
its parameters.
Constructors#
- class ClosureExpression
- classmethod new(value_type: GType, closure: Closure, params: list[Expression] | None = None) ClosureExpression#
Creates a
GtkExpressionthat callsclosurewhen it is evaluated.closureis called with thethisobject and the results of evaluating theparamsexpressions.- Parameters:
value_type – the type of the value that this expression evaluates to
closure – closure to call when evaluating this expression. If closure is floating, it is adopted
params – expressions for each parameter