[Sugar-devel] PyGame/ Sugargame issues with GTK 3

James Simmons nicestep at gmail.com
Tue Feb 18 16:49:20 EST 2014


Receiving a GCI T-shirt last week when I didn't actually mentor anyone
shamed me into resuming work on the revisions needed for a GTK 3 edition of
"Make Your Own Sugar Activities!". I have been polishing up the examples
that Aneesh Dogra already converted last year and working on converting
examples he didn't do, notably the Making Activities With PyGame example.

This is where my GTK3 code for that is:

http://git.sugarlabs.org/myo-sugar-activities-examples/mainline/trees/master/Making_Activities_Using_PyGame_gtk3

I updated sugargame to the latest code I found in Gitorious, which clearly
uses GTK3. I was able to get the Activity to start up and run with no log
errors, but while it runs it ignores my key presses. I don't know if the
problem is with sugargame or with sugar-runner. (I use Fedora 20 and the
sugar-runner that ships with that). My Read Etexts example recognizes the
arrow keys when running under sugar-runner so I don't know why pygame would
have a problem. The stand alone version (no sugar or Gtk) works just fine.
This makes me thing there is a bug in the new sugargame. I wonder if anyone
has thoughts on how I could diagnose and fix this.

James Simmons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140218/b01a075d/attachment.html>


More information about the Sugar-devel mailing list