olpcgames - mainloop bug help

World Class Project- Dev Team develop at worldclassproject.org.uk
Sat Jun 26 13:26:27 EDT 2010


Thanks for this Wade, I used the slow Cairo this time but will try sugargames
next time.
 
Thanks
WCP
 

On 26 June 2010 at 04:49 Wade Brainerd <wadetb at gmail.com> wrote:

> Hi there,
>
> Sorry I missed this email.  You might want to check out sugargame which does
> not use this event loop wrapping approach:
>
> http://wiki.sugarlabs.org/go/Development_Team/Sugargame
>
> 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.
>
> Best,
> Wade
>
> On Sat, Jun 5, 2010 at 7:58 PM, World Class Project- Dev Team <
> develop at worldclassproject.org.uk> wrote:
>
> >
> >
> > Hi all,
> >
> >
> >
> > I have managed to fix most of my bugs for my new  game, but please could
> > someone help me with this?
> >
> >
> >
> > I am using olpcgames wrapper.
> >
> >
> >
> > Exception in thread Thread-1:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
> >     self.run()
> >   File "/usr/lib/python2.6/threading.py", line 477, in run
> >     self.__target(*self.__args, **self.__kwargs)
> >   File
> > "/usr/share/sugar/activities/FreeFromMalaria.activity/olpcgames/canvas.py",
> > line 143, in _start
> >     gtk.main_quit()
> > RuntimeError: called outside of a mainloop
> >
> >
> >
> >
> >
> > The code is in git://git.sugarlabs.org/freefrommalaria/mainline.git
> >
> >
> >
> > 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?
> >
> >
> >
> > Thanks in advance.
> >
> >
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.laptop.org
> > http://lists.laptop.org/listinfo/devel
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20100626/fbb059c9/attachment.html>


More information about the Devel mailing list