: an integer is required

2009-06-15 Thread jeni
I have developed in python a game for OPLC. When I run the game in Python 2.5.2 at Windows there is no problem. But after I play a game at OLPC I get the following message: Traceback (most recent call last) /home/olpc/Activities/Kremala.activity/Kremala.py in add_letter (self=, widget=, grama='i

Re: error: an integer is required

2009-06-14 Thread jeni
On 8 Ιούν, 21:46, Terry Reedy wrote: > madigre...@yahoo.gr wrote: > > I execute my code in linux environment. > > My code is: > > > from os import * > > > def insert_text_file(self, strng): > >      t=open("elements_file.txt", "a") > >      t.write(strng) > >      t.close() > > > I'm getting this