To: <a href="mailto:sugar-devel@lists.sugarlabs.org">sugar-devel@lists.sugarlabs.org</a><br><div class="gmail_quote">Date: Sun, 6 Jun 2010 16:20:05 -0400<br>Subject: Analysis help needed re: sugargame (pygame) on the 1.0XO (build 802)<br>
Hi everyone,<br><br>I've been developing a thumbnail slide sorting activity using pygame on my 1.5XO. I've been happy with the ease of laying out the screen using pygame. Now I'm checking it out on the 1.0, and having perplexing difficulty.<br>
<br>My guess is that it's something that I'm doing, because the test activity distributed with sugargame, and the Demoiselle demo program developed by Jim Simmons also fail in the same manner. (but I've redownloaded build 802, and reflashed my test machine, and also brought down the most recent git of sugargame)<br>
<br>As I understand it, Sugargame puts a gtk.socket into an eventbox, and the event box is loaded into the XO's VBox by the sugar.graphics.window.set_canvas function -- which is a super of sugar.activity.activity.<br>
<br>In sugargame/canvas.py<br>line 41 self._socket.get_window().set_cursor(None)<br><br>AttributeError: 'gtk.Socket' object has no attribute 'get_window'<br><br>This is after an environment variable "SDL_WINDOWID" has been passed to the pygame.init() routine, (I guess pygame uses this ID to create the gtk.Plug().<br>
<br>What works on the 1.5 (test.activity, and demoiselle.activity, and my application)<br>gtk.ver = 2.16.1<br>pygame.ver = 1.8.1<br><br>What doesn't work on 1.0XO build 802: (all three of these fail with the above AttributeError)<br>
gtk.ver = 2.14.2<br>pygame.ver = 1.8.0<br><br>I looked into putting the pygame 1.9.1 on Build 802, but there were dependencies more than just SDL-devel, and I've still got the nagging feeling that I'm missing something simple (the test.activity was probably tested on build 802)<br>
<br>Any insight, advice would be appreciated,<br><br>George<br>
<br></div><br>