GNOME Bugzilla – Bug 671318
Draw signal not working with Python 3
Last modified: 2012-04-22 18:09:24 UTC
Created attachment 208963 [details] Draw signal test case I'm porting code to Python 3, GTK 3 and PyGI. Documentation [1] tells me that "The GtkWidget 'expose-event' signal has been replaced by a new 'draw' signal". However, when I try connecting to this signal, it doesn't work as expected. I'll attach a simple test case, which should just print to stdout, when the callback is called. For me, it (1) prints nothing, like the callback doesn't get called at all and (2) it will hang after I close the window, i.e. Gtk.main_quit, which should be called on delete-event doesn't fully exit. Commenting out the "draw" signal connection makes problem (2) go away. The problem exists only with Python 3, if I try the same test case with Python 2, it works as expected. I'm using Python 3.2.2, PyGobject 3.1.0 and GTK+ 3.2.3. [1] http://developer.gnome.org/gtk3/3.3/ch25s02.html
The testcase works for me with the python3 and the pygobject shipped on fedora 16
This also works for me, using current pygobject 3.2 from either upstream, Debian, and Ubuntu.
The test case works for me know. I had not noticed a transition from python3-gobject to python3-gi in Debian unstable. Either my installation was broken or the bug was fixed with pygobject 3.2, which I just now installed.
Thanks for checking! I'll close this report then.