Class k.u.PropertyObject(object):

Part of kiwi.utils

known subclasses: kiwi.ui.widgets.colorbutton.ProxyColorButton, kiwi.ui.widgets.fontbutton.ProxyFontButton, kiwi.ui.widgets.button.ProxyButton, kiwi.ui.widgets.filechooser.ProxyFileChooserWidget, kiwi.ui.widgets.filechooser.ProxyFileChooserButton, kiwi.ui.hyperlink.HyperLink, kiwi.ui.widgets.entry.ProxyDateEntry, kiwi.ui.widgets.combo.ProxyComboBox, kiwi.ui.widgets.combo.ProxyComboBoxEntry, kiwi.ui.widgets.combo.ProxyComboEntry, kiwi.ui.entry.KiwiEntry, kiwi.ui.widgets.spinbutton.ProxySpinButton, kiwi.ui.widgets.checkbutton.ProxyCheckButton, kiwi.ui.widgets.textview.ProxyTextView, kiwi.ui.widgets.radiobutton.ProxyRadioButton, kiwi.ui.widgets.scale.ProxyHScale, kiwi.ui.widgets.scale.ProxyVScale, kiwi.ui.objectlist.Column, kiwi.ui.objectlist.ObjectList, kiwi.ui.widgets.label.ProxyLabel

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
Function__init__Undocumented
Function__class_init__Undocumented
Function__post_init__
A hook which is called after the constructor is called.
Function_setUndocumented
Function_getUndocumented
Functionget_attribute_namesUndocumented
Functionis_default_valueUndocumented
Functiondo_set_propertyUndocumented
Functiondo_get_propertyUndocumented
def __init__(self, **kwargs):
Undocumented
def __class_init__(cls, namespace):
Undocumented
def __post_init__(self):
A hook which is called after the constructor is called. It's mainly here to workaround http://bugzilla.gnome.org/show_bug.cgi?id=425501 so you can set properties at construction time
def _set(self, name, value):
Undocumented
def _get(self, name):
Undocumented
def get_attribute_names(self):
Undocumented
def is_default_value(self, attr, value):
Undocumented
def do_set_property(self, pspec, value):
Undocumented
def do_get_property(self, pspec):
Undocumented