[Sugar-devel] PyGame can be run only once assertion error
Manuel Quiñones
manuq at laptop.org
Tue Oct 1 07:15:13 EDT 2013
2013/9/30 Alan Jhonn Aguiar Schwyn <alanjas at hotmail.com>:
>>TypeError: _screen_changed_cb() takes exactly 2 arguments (3 given)
>
> I'm investigate the warning. In the documentation says:
>
> http://pygtk.org/docs/pygtk/class-gtkwidget.html#signal-gtkwidget--screen-changed
>
> Then, the function must be:
>
> def _screen_changed_cb(self, widget, screen):
> if pygame.display.get_init():
> self.update_display()
Thanks, in GTK3 is the same:
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-screen-changed
Pushed a fix.
--
.. manuq ..
More information about the Sugar-devel
mailing list