Hi there,<div><br></div><div>Sorry I missed this email. You might want to check out sugargame which does not use this event loop wrapping approach:</div><div><br></div><div><a href="http://wiki.sugarlabs.org/go/Development_Team/Sugargame">http://wiki.sugarlabs.org/go/Development_Team/Sugargame</a></div>
<div><br></div><div>That said I see in a later post that you switched to GTK/Cairo which is great - so long as you don't get too bogged down by Cairo's slow rendering on XO-1.</div><div><br></div><div>Best,</div>
<div>
Wade<br><br><div class="gmail_quote">On Sat, Jun 5, 2010 at 7:58 PM, World Class Project- Dev Team <span dir="ltr"><<a href="mailto:develop@worldclassproject.org.uk">develop@worldclassproject.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<p style="margin:0px"> </p>
<p style="margin:0px">Hi all,</p>
<p style="margin:0px"> </p>
<p style="margin:0px">I have managed to fix most of my bugs for my new game, but please could someone help me with this?</p>
<p style="margin:0px"> </p>
<p style="margin:0px">I am using olpcgames wrapper.</p>
<p style="margin:0px"> </p>
<p style="margin:0px">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 "/usr/share/sugar/activities/FreeFromMalaria.activity/olpcgames/canvas.py", line 143, in _start<br>
gtk.main_quit()<br>
RuntimeError: called outside of a mainloop</p>
<p style="margin:0px"> </p>
<p style="margin:0px"> </p>
<p style="margin:0px">The code is in <code>git://<a href="http://git.sugarlabs.org/freefrommalaria/mainline.git" target="_blank">git.sugarlabs.org/freefrommalaria/mainline.git</a></code></p>
<p style="margin:0px"> </p>
<p style="margin:0px">And the main loop is in GameController.py , I cannot for the life of me figure out where this exception is being raised in my code. I have no idea whats being called outside the mainloop. Please could any one offer any insight?</p>
<p style="margin:0px"> </p>
<p style="margin:0px">Thanks in advance.</p>
<p style="margin:0px"><span></span></p>
</div>
<br>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
<br></blockquote></div><br></div>