Dave,
You are not getting a warning saying it isn't realized. You are 
getting a warning saying it IS realized!

Have a look at the gtk_widget_set_events() docs - "This method must 
be called while a widget is unrealized".
So just move the set_events() call into __init__().

Also, if you want your widget to be compatible with GTK+ widgets I
think its best to remove parent.add(self) and self.show() from
__init__(), and call them after the widget has been created, as 
required.

Regards
Steve

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to