Hi guys.<br><br>On Tue, Dec 9, 2008 at 4:32 AM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry Gloria,<br>
<br>
but doesn't seem to be around here many people with experience with olpcgames.<br>
<br>
Did you managed to solve this issue?</blockquote><div><br>Yes, I did it. Wade helped me. I'm sorry guys, I had to reply you about the solution but I am trying to finish the activity and I forgot it.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
How is your activity different from the other activities that use olpcgames?</blockquote><div><br>Well, I am making an activity based on JingSawPuzzle game. I found this game in the olpcgames site. It was perfect for my activity, so I used the source code. I know there is an JingSawPuzzle activity for XO but it has less elements than the original one, and these elements are necessaries for my activity<br>
<br>I had problems with some parameters, Wade reviewed my source code and told me about that. I fixed the mistake and I found several ones, but I fixed each one. Now I am adding New functionality and sugarizing :)<br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Regards,</blockquote><div><br>Thanks <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
Tomeu<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Sun, Nov 30, 2008 at 5:23 PM, Gloria Meneses <<a href="mailto:gpmeneses@gmail.com">gpmeneses@gmail.com</a>> wrote:<br>
><br>
> Hello people<br>
><br>
> I have a problem using canvas.<br>
> olpcgames canvas has 2 arguments: width and height. In my activity class I<br>
> call canvas in this way:<br>
><br>
> self.canvas = olpcgames.canvas(1200, 750)<br>
><br>
> but I have this problem:<br>
><br>
> olpcgames.canvas: Uncaught top-level exception: Traceback (most recent call<br>
> last):<br>
> File "/home/monyu/Activities/StoryBuilder.activity/olpcgames/canvas.py",<br>
> line 116, in _start<br>
> fn()<br>
> TypeError: __init__() takes exactly 2 arguments (1 given)<br>
><br>
> Exception in thread Thread-1:<br>
> Traceback (most recent call last):<br>
> File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner<br>
> self.run()<br>
> File "/usr/lib/python2.5/threading.py", line 446, in run<br>
> self.__target(*self.__args, **self.__kwargs)<br>
> File "/home/monyu/Activities/StoryBuilder.activity/olpcgames/canvas.py",<br>
> line 124, in _start<br>
> gtk.main_quit()<br>
> RuntimeError: called outside of a mainloop<br>
><br>
><br>
> I reviewed several olpcgames activities but I don't understand how to show<br>
> the content of my game into the canvas, so I was following the Activity<br>
> tutorial but I got the same log.<br>
><br>
> reviewed the olpcgames canvas source code and the method connect_game is<br>
> looking for the name of activity main loop, but I don't know how to set it<br>
> on.<br>
><br>
> if ':' not in app:<br>
> app += ':main'<br>
> mod_name, fn_name = app.split(':')<br>
> mod = __import__(mod_name, globals(), locals(), [])<br>
> fn = getattr(mod, fn_name)<br>
><br>
> any hints<br>
> Thanks<br>
> --<br>
> --------------------------------------------<br>
> + Software Libre en Colombia<br>
> <a href="http://el-directorio.org" target="_blank">http://el-directorio.org</a><br>
><br>
> + OLPC Colombia<br>
> <a href="http://wiki.laptop.org/go/OLPC_Colombia" target="_blank">http://wiki.laptop.org/go/OLPC_Colombia</a><br>
><br>
> + Mujeres en el software libre<br>
> <a href="http://www.chicaslinux.org" target="_blank">http://www.chicaslinux.org</a><br>
><br>
</div></div><div><div></div><div class="Wj3C7c">> _______________________________________________<br>
> Sugar mailing list<br>
> <a href="mailto:Sugar@lists.laptop.org">Sugar@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/sugar" target="_blank">http://lists.laptop.org/listinfo/sugar</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------<br>+ Software Libre en Colombia<br><a href="http://el-directorio.org">http://el-directorio.org</a> <br><br>+ OLPC Colombia<br>
<a href="http://wiki.laptop.org/go/OLPC_Colombia">http://wiki.laptop.org/go/OLPC_Colombia</a><br><br>+ Mujeres en el software libre<br><a href="http://www.chicaslinux.org">http://www.chicaslinux.org</a><br>