:right-sidebar: True ClosureExpression =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: ClosureExpression(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Expression` :Constructors: :: ClosureExpression(**properties) new(value_type:GType, closure:GObject.Closure, params:list=None) -> Gtk.ClosureExpression Constructors ------------ .. rst-class:: interim-class .. class:: ClosureExpression :no-index: .. classmethod:: new(value_type: type, closure: ~typing.Callable[[...], ~typing.Any], params: ~typing.Sequence[~gi.repository.Gtk.Expression] | None = None) -> ~gi.repository.Gtk.ClosureExpression Creates a ``GtkExpression`` that calls ``closure`` when it is evaluated. ``closure`` is called with the ``this`` object and the results of evaluating the ``params`` expressions. :param value_type: the type of the value that this expression evaluates to :param closure: closure to call when evaluating this expression. If closure is floating, it is adopted :param params: expressions for each parameter