CClosureExpression
- class CClosureExpression(*args, **kwargs)
Superclasses: Expression
A variant of GtkClosureExpression
using a C closure.
Constructors
- class CClosureExpression
- classmethod new(value_type: type, marshal: Callable[[Callable[[...], Any], Any | None, Sequence[Any], None, None], None] | None, params: Sequence[Expression], callback_func: Callable[[...], None], *user_data: Any) CClosureExpression
Creates a
GtkExpression
that callscallback_func
when it is evaluated.This function is a variant of
new
that creates aGClosure
by callingnew()
with the givencallback_func
,user_data
anduser_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