[pygtk] GTK_IS_WIDGET on subclass of a widget fails

Jeffrey Finkelstein jeffrey.finkelstein at gmail.com
Thu May 21 22:21:45 WST 2009


Christian Becke wrote:
> 
> I think you have to call the constructor of the parent object here:
> 	def __init__(self):
> 		HBox.__init__(self)
> and you have to make your new widget known:
> import gobject
> gobject.type_register (FooBox)
> 

Thanks Christian, and Jeffrey, that helped.

Jeffrey


More information about the pygtk mailing list