:right-sidebar: True PropertyExpression =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: PropertyExpression(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Expression` A ``GObject`` property value in a ``GtkExpression``. Constructors ------------ .. rst-class:: interim-class .. class:: PropertyExpression :no-index: .. classmethod:: new(this_type: type, expression: ~gi.repository.Gtk.Expression | None, property_name: str) -> ~gi.repository.Gtk.PropertyExpression Creates an expression that looks up a property. The object to use is found by evaluating the ``expression``, or using the ``this`` argument when ``expression`` is ``NULL``. If the resulting object conforms to ``this_type``, its property named ``property_name`` will be queried. Otherwise, this expression's evaluation will fail. The given ``this_type`` must have a property with ``property_name``. :param this_type: The type to expect for the this type :param expression: Expression to evaluate to get the object to query or ``NULL`` to query the ``this`` object :param property_name: name of the property .. classmethod:: new_for_pspec(expression: ~gi.repository.Gtk.Expression | None, pspec: ~gi.repository.GObject.ParamSpec) -> ~gi.repository.Gtk.PropertyExpression Creates an expression that looks up a property. The object to use is found by evaluating the ``expression``, or using the ``this`` argument when ``expression`` is ``NULL``. If the resulting object conforms to ``this_type``, its property specified by ``pspec`` will be queried. Otherwise, this expression's evaluation will fail. :param expression: Expression to evaluate to get the object to query or ``NULL`` to query the ``this`` object :param pspec: the ``GParamSpec`` for the property to query Methods ------- .. rst-class:: interim-class .. class:: PropertyExpression :no-index: .. method:: get_expression() -> ~gi.repository.Gtk.Expression | None Gets the expression specifying the object of a property expression. .. method:: get_pspec() -> ~gi.repository.GObject.ParamSpec Gets the ``GParamSpec`` specifying the property of a property expression.