CClosureExpression#
- class CClosureExpression(*args, **kwargs)#
 
Superclasses: Expression
A variant of GtkClosureExpression using a C closure.
Constructors#
- class CClosureExpression
 - classmethod new(value_type: GType, marshal: Callable[[Closure, Value | None, list[Value], Any, Any], None] | None, params: list[Expression], callback_func: Callable[[], None], user_data: Any = None) CClosureExpression#
 Creates a
GtkExpressionthat callscallback_funcwhen it is evaluated.This function is a variant of
newthat creates aGClosureby callingnew()with the givencallback_func,user_dataanduser_destroy.- Parameters:
 value_type – the type of the value that this expression evaluates to
marshal – marshaller used for creating a closure
params – expressions for each parameter
callback_func – callback used for creating a closure
user_data – user data used for creating a closure