Package flumotion :: Package common :: Module pygobject
[show private | hide private]
[frames | no frames]

Module flumotion.common.pygobject

PyGTK helper functions
Function Summary
  gobject_set_property(object, property, value)
Set the given property to the given value on the given object.
  gproperty(type_, name, desc, *args, **kwargs)
Add a GObject property to the current object.
  gsignal(name, *args)
Add a GObject signal to the current object.
  with_construct_properties(__init__)
Wrap a class' __init__ method in a procedure that will construct gobject properties.

Variable Summary
int PARAM_CONSTRUCT = 512                                                                   

Function Details

gobject_set_property(object, property, value)

Set the given property to the given value on the given object.
Parameters:
object
           (type=gobject.GObject)
property
           (type=string)
value - value to set property to

gproperty(type_, name, desc, *args, **kwargs)

Add a GObject property to the current object. To be used from class definition scope.
Parameters:
type_
           (type=type object)
name
           (type=string)
desc
           (type=string)
args
           (type=mixed)

gsignal(name, *args)

Add a GObject signal to the current object. To be used from class definition scope.
Parameters:
name
           (type=string)
args
           (type=mixed)

with_construct_properties(__init__)

Wrap a class' __init__ method in a procedure that will construct gobject properties. This is necessary because pygtk's object construction is a bit broken.

Usage:
   class Foo(GObject):
       def __init__(self):
           GObject.__init(self)
       __init__ = with_construct_properties(__init__)

Variable Details

PARAM_CONSTRUCT

Type:
int
Value:
512                                                                   

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net