[pygtk] DrawingArea user feedback
Frédéric
frederic.mantegazza at gbiloba.org
Tue Nov 18 03:10:14 WST 2008
On lundi 17 novembre 2008, Frédéric wrote:
> > GtkWarning: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED
> > (widget)' failed
>
> As far as I understand, this assertion is raised because the
> set_events() method should be called *after* the widget is realized, ie
> after it is drawn on the screen.
In fact, this is exaclty the opposite :o/ The set_events() method must be
called before a window is associated with the widget. Calling it in my
__init__() method, after the call to super() did the job.
Sorry for the noise.
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list