Le 17/11/2008, "A.T.Hofkamp" <[EMAIL PROTECTED]> a écrit:

>In the scribble tutorial example (appendix B), they use
>
>drawing_area.connect("button_press_event", button_press_event)
>
>with a function
>
>def button_press_event(widget, event):
>    ...

Thanks for pointing me to that example.

I tried to bind this signal, but it didn't work. This is because it
needs to be enabled, calling set_events() method. But when I do that, I
get:

GtkWarning: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED
(widget)' failed

Why?

--
   Frédéric
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to