Gtk.PropertyExpression

g Gtk.Expression Gtk.Expression Gtk.PropertyExpression Gtk.PropertyExpression Gtk.Expression->Gtk.PropertyExpression

Subclasses:

None

Methods

Inherited:

Gtk.Expression (7)

class

new (this_type, expression, property_name)

class

new_for_pspec (expression, pspec)

get_expression ()

get_pspec ()

Virtual Methods

None

Fields

None

Class Details

class Gtk.PropertyExpression
Bases:

Gtk.Expression

Abstract:

No

A GObject property value in a GtkExpression.

classmethod new(this_type, expression, property_name)[source]
Parameters:
  • this_type (GObject.GType) – The type to expect for the this type

  • expression (Gtk.Expression or None) – Expression to evaluate to get the object to query or NULL to query the this object

  • property_name (str) – name of the property

Returns:

a new GtkExpression

Return type:

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.

classmethod new_for_pspec(expression, pspec)[source]
Parameters:
  • expression (Gtk.Expression or None) – Expression to evaluate to get the object to query or NULL to query the this object

  • pspec (GObject.ParamSpec) – the GParamSpec for the property to query

Returns:

a new GtkExpression

Return type:

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.

get_expression()[source]
Returns:

the object expression

Return type:

Gtk.Expression or None

Gets the expression specifying the object of a property expression.

get_pspec()[source]
Returns:

the GParamSpec for the property

Return type:

GObject.ParamSpec

Gets the GParamSpec specifying the property of a property expression.