[pygtk] gobject.GObject.__init__(self)

Richard Procter rnp at paradise.net.nz
Fri May 14 11:12:28 WST 2010


Hi all,

I am upgrading some code from pygtk 2.6.1 to 2.16.0 and
have a basic question:

When must gobject.GObject.__init__(self) be called?

I assume: when and only when the class is a direct subclass
of gobject.GObject. Is this correct?

I find my code has indirect subclasses of gobject.GObject
whose __init__ method invokes gobject.GObject.__init__(self),
which I presumably put there for good reason at the time but
which appear now to be superfluous.

I have googled this list's archives and looked at the PyGObject
documentation without result.

many thanks,
Richard.




More information about the pygtk mailing list