> 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 _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
