Re: [pygtk] is GObject initialized?

2006-12-03 Thread Paul Pogonyshev
Johan Dahlin wrote: > > > Is there a non-hackish way to find if GObject is initialized or not? > > It seems non-initialized objects have zero hash, while initialized > > have non-zero, but it is probably a hack to depend on it... > > > Using the hash is fine. > It's currently implemented like t

[pygtk] is it possible to use custom class wrappers?

2006-12-03 Thread Paul Pogonyshev
Hi, Is it possible to use custom wrappers for GTK+-created objects? E.g. a combo box entry creates an entry (from C code, not from Python code.) Can I have a custom Python class (derived from gtk.Entry of course) instantiated as a wrapper for it? Paul ___