On 01-10-11 10:51, Iñigo Serna wrote:

In Gtk+ v3 the expose_event is now called 'draw', so change this line:
-     drawing_area.connect('expose-event',self.expose)
with:
+     drawing_area.connect('draw',self.expose)

and it should work.
Do remember that the callback parameters are different too, it receives the widget and cairo context. Check the following example: http://git.gnome.org/browse/pygobject/tree/examples/cairo-demo.py

Tip for the topic starter: check the gtk reference manual [1]. These are fully up to date and apply to Python too. There is also a chapter on migrating from GTK2 to GTK3 and lots of other usefull documents.

Cheers,
Timo

[1] http://developer.gnome.org/gtk3/stable/

Greetings,
Iñigo Serna
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to