Jeffrey Barish wrote: > I am trying to create a custom widget. Following examples I found from a > Google search, I am trying to subclass gtk.Widget. I get the error > message: > > TypeError: cannot create instance of abstract (non-instantiable) type > `GtkWidget'
You need to call gobject.type_register(YourGtkWidgetSubclass) or set the class variable __gtype_name__ among other things. For a complete example, look at the widget.py: http://svn.gnome.org/viewcvs/pygtk/trunk/examples/gtk/widget.py?view=markup Hope this helps. -- Johan Dahlin <[EMAIL PROTECTED]> Async Open Source _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/