Module k.utils

Part of kiwi
GObject utilities and addons
Functionlist_properties
Return a list of all properties for GType gtype, excluding
Functiontype_register
Register the type, but only if it's not already registered
Class_GObjectClassInittableMetaTypeUndocumented
Class_GobjectClassInittableObjectUndocumented
ClassPropertyMeta
Metaclass that takes into account properties and signals
ClassPropertyObject
I am an object which maps GObject properties to attributes
Functiongsignal
Add a GObject signal to the current object.
Function_maxUndocumented
Functiongproperty
Add a GObject property to the current object.
Functionquote
Similar to urllib.quote but for glibs GMarkup
def list_properties(gtype, parent=True):
Return a list of all properties for GType gtype, excluding properties in parent classes
def type_register(gtype):
Register the type, but only if it's not already registered
def gsignal(name, *args, **kwargs):
Add a GObject signal to the current object. It current supports the following types:
  • str, int, float, long, object, enum
def _max(c):
Undocumented
def gproperty(name, ptype, default=None, nick='', blurb='', flags=gobject.PARAM_READWRITE, **kwargs):
Add a GObject property to the current object.
def quote(msg):
Similar to urllib.quote but for glibs GMarkup