Gtk.PropertyExpression¶
class — extends Expression
A GObject property value in a GtkExpression.
Constructors¶
new¶
@classmethod
def new(cls, this_type: type | GObject.Type, expression: Expression | None, property_name: str) -> 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.
Parameters:
this_type— The type to expect for the this typeexpression— Expression to evaluate to get the object to query orNULLto query thethisobjectproperty_name— name of the property
new_for_pspec¶
@classmethod
def new_for_pspec(cls, expression: Expression | None, pspec: GObject.ParamSpec) -> 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.
Parameters:
expression— Expression to evaluate to get the object to query orNULLto query thethisobjectpspec— theGParamSpecfor the property to query
Methods¶
get_expression¶
Gets the expression specifying the object of a property expression.
get_pspec¶
Gets the GParamSpec specifying the property of
a property expression.