I wrote one today as well, after porting 3D Pong from OLPCGames to pure PyGTK + cairo (it's a lot slower unfortunately, either their line drawing or their text drawing needs serious optimization). I had to spend a bunch of time researching how to get smooth animation out of PyGTK, so here are my results.
<br><br><a href="http://wiki.laptop.org/go/PyGTK/Smooth_Animation_with_PyGTK">http://wiki.laptop.org/go/PyGTK/Smooth_Animation_with_PyGTK</a><br><br><div class="gmail_quote">On Jan 17, 2008 12:06 PM, Chris Hager <<a href="mailto:chris@linuxuser.at">
chris@linuxuser.at</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey all.<br><br>Jaume and I just had a pizza-and-beer coding session, and the outcome
<br>were two tutorials for creating Activities with PyGTK, one of them using<br>Glade.<br><br>=> <a href="http://wiki.laptop.org/go/PyGTK/Hello_World_Tutorial" target="_blank">http://wiki.laptop.org/go/PyGTK/Hello_World_Tutorial
</a><br><br>We're using activity.py as a wrapper, which loads the code and GTK<br>interface from gtktest.py. This way,<br>- very little code is required to get a PyGTK Activity running in Sugar<br>(6 lines in gtktest.py
)<br>- PyGTK Activities can run as standalone versions on any linux system by<br>default<br><br>Example Bundles:<br>- <a href="http://wiki.laptop.org/images/b/ba/Gtktest.xo" target="_blank">http://wiki.laptop.org/images/b/ba/Gtktest.xo
</a><br>- <a href="http://wiki.laptop.org/images/0/02/Gtktest-glade.xo" target="_blank">http://wiki.laptop.org/images/0/02/Gtktest-glade.xo</a><br><br>Please feel free to extend the page; and add comments to [[Talk:]] or<br>
the mailing list.<br><br>- Chris & Jaume<br> (OLPC Austria)<br><br><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></blockquote></div><br>