<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
<p style="margin: 0px;">Hi Sascha</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Yes I think you're right, my activity was probably  to complex for pygame. I re-factored all my code to use pygtk/cairo instead, it's a little bit slower but it all seems to work, I've uploaded the new version.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">http://activities.sugarlabs.org/en-US/sugar/addon/4309</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Thanks</p>
<p style="margin: 0px;"><span></span></p>
<p> </p>
<div style="margin: 5px 0px 5px 0px; font-family: monospace;">
On 06 June 2010 at 09:19 Sascha Silbe <sascha-ml-ui-sugar-devel@silbe.org> wrote:<br />
<br />
> > Exception in thread Thread-1:<br />
> > Traceback (most recent call last):<br />
> >   File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner<br />
> >     self.run()<br />
> >   File "/usr/lib/python2.6/threading.py", line 477, in run<br />
> >     self.__target(*self.__args, **self.__kwargs)<br />
> >   File<br />
> > "/usr/share/sugar/activities/FreeFromMalaria.activity/olpcgames/canvas.py", line<br />
> > 143, in _start<br />
> >     gtk.main_quit()<br />
> > RuntimeError: called outside of a mainloop<br />
> >  <br />
> > The code is in git://git.sugarlabs.org/freefrommalaria/mainline.git<br />
> My quick and wild guess is that olpcgames might not like you changing the<br />
> main loop from within a running main loop (i.e. your change_game() and<br />
> related functions).<br />
><br />
> Sascha<br />
><br />
> --<br />
> http://sascha.silbe.org/<br />
> http://www.infra-silbe.de/<br />
</div>
</body>
</html>