From 1e29b21df31efc1a7f0b9e8e1ab5a9b3de4137c8 Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Mon, 23 Apr 2007 14:24:10 +0000 Subject: new pygobject_set_properties and pygobject_get_properties methods svn path=/trunk/; revision=646 --- docs/reference/pygobject.xml | 83 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) (limited to 'docs/reference') diff --git a/docs/reference/pygobject.xml b/docs/reference/pygobject.xml index fd75829..ff02664 100644 --- a/docs/reference/pygobject.xml +++ b/docs/reference/pygobject.xml @@ -25,12 +25,25 @@ linkend="method-gobject--get-property">get_property get_properties + first_property_name + ... + + + set_property property_name value set_properties + property_name + value + ... + + + freeze_notify @@ -242,6 +255,40 @@ if the property name is not registered with the object class. + + gobject.GObject.get_properties + + + get_properties + first_property_name + ... + + + + first_property_name : + a string containing the first property name for the +GObject + + + ... : + additional property names + + + + Returns : + a tuple containing the property values +requested + + + + The get_properties() method returns a tuple containing +the values of the properties requested, or +None if there is no value associated with the property. + The TypeError exception is raised +if the property name is not registered with the object class. + + + gobject.GObject.set_property @@ -268,6 +315,42 @@ property specified by property_name to the specified value. The TypeError exception is raised if the property name is not registered with the object class or if the value +specified could not be converted to the property type. + + + + + gobject.GObject.set_properties + + + set_properties + property_name + value + ... + + + + property_name : + the property name + + + value : + a Python object containing the property value +to be set + + + ... : + additional property name and value +kwargs + + + + The set_properties() method sets the +property specified by property_name to the specified +value, followed by pairs of property name +and value as keyword arguments. + The TypeError exception is raised +if the property name is not registered with the object class or if the value specified could not be converted to the property type. -- cgit