Gtk.PropertyExpression¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
class |
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gtk.PropertyExpression¶
- Bases:
- Abstract:
No
A
GObject
property 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.Expression
orNone
) – Expression to evaluate to get the object to query orNULL
to query thethis
objectproperty_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 thethis
argument whenexpression
isNULL
.If the resulting object conforms to
this_type
, its property namedproperty_name
will be queried. Otherwise, this expression’s evaluation will fail.The given
this_type
must have a property withproperty_name
.
- classmethod new_for_pspec(expression, pspec)[source]¶
- Parameters:
expression (
Gtk.Expression
orNone
) – Expression to evaluate to get the object to query orNULL
to query thethis
objectpspec (
GObject.ParamSpec
) – theGParamSpec
for 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 thethis
argument whenexpression
isNULL
.If the resulting object conforms to
this_type
, its property specified bypspec
will 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.