Type PropertyObject
object --+
|
PropertyObject
- Known Subclasses:
-
Column,
HyperLink,
KiwiEntry,
ObjectList,
ProxyButton,
ProxyCheckButton,
ProxyColorButton,
ProxyComboBox,
ProxyComboBoxEntry,
ProxyComboEntry,
ProxyDateEntry,
ProxyFileChooserButton,
ProxyFileChooserWidget,
ProxyFontButton,
ProxyLabel,
ProxyRadioButton,
ProxySpinButton,
ProxyTextView
I am an object which maps GObject properties to attributes To be able
to use me, you must also inherit from a gobject.GObject subclass.
Example:
>>> from kiwi.utils import PropertyObject, gproperty
>>> class Person(PropertyObject, gobject.GObject):
>>> gproperty('name', str)
>>> gproperty('age', int)
>>> gproperty('married', bool, False)
>>> test = Test()
>>> test.age = 20
>>> test.age
20
>>> test.married
False
| Method Summary |
| |
do_get_property(self,
pspec)
|
| |
do_set_property(self,
pspec,
value)
|
| |
get_attribute_names(self)
|
| |
is_default_value(self,
attr,
value)
|