Gtk.PropertyExpression¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
class |
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gtk.PropertyExpression¶
- Bases:
- Abstract:
No
A
GObjectproperty value in aGtkExpression.- classmethod new(this_type, expression, property_name)[source]¶
- Parameters:
this_type (
GObject.GType) – The type to expect for the this typeexpression (
Gtk.ExpressionorNone) – Expression to evaluate to get the object to query orNULLto query thethisobjectproperty_name (
str) – name of the property
- Returns:
a new
GtkExpression- Return type:
Creates an expression that looks up a property.
The object to use is found by evaluating the
expression, or using thethisargument whenexpressionisNULL.If the resulting object conforms to
this_type, its property namedproperty_namewill be queried. Otherwise, this expression’s evaluation will fail.The given
this_typemust have a property withproperty_name.
- classmethod new_for_pspec(expression, pspec)[source]¶
- Parameters:
expression (
Gtk.ExpressionorNone) – Expression to evaluate to get the object to query orNULLto query thethisobjectpspec (
GObject.ParamSpec) – theGParamSpecfor the property to query
- Returns:
a new
GtkExpression- Return type:
Creates an expression that looks up a property.
The object to use is found by evaluating the
expression, or using thethisargument whenexpressionisNULL.If the resulting object conforms to
this_type, its property specified bypspecwill be queried. Otherwise, this expression’s evaluation will fail.
- get_expression()[source]¶
- Returns:
the object expression
- Return type:
Gets the expression specifying the object of a property expression.