[maemo-developers] pygtk in maemo?
From: Eugene Antimirov turist at gmail.comDate: Mon Dec 15 15:36:38 EET 2008
- Previous message: Soundmanager2
- Next message: busybox symlinks discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'm trying to make whiteboard for maemo using pygtk. > I wrote down the code in my laptop and it works well, but not in my Nokia N810. > > Error says 'gtk.gdk.Color' object has no attribute 'to_string'. However, as you may see on pygtk docs, gtk.gdk.Color does have to_string method for string representation. > (again, it works well in laptop without any error) > > What is the problem with that? Is there any difference between pygtk for PC and for maemo? And, how can I solve this problem? Hi, I had the same problem not so long ago - http://antimirov.blogspot.com/2008/05/labyrinth-bugfix-release.html I described a workaround function there: ->> def color_to_string(color): return "#00%02x00%02x00%02x" % (color.red, color.green, color.blue) <<- -- Sincerely, Eugene
- Previous message: Soundmanager2
- Next message: busybox symlinks discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]