thanks all. this seemed to work:
import os
stat = os.stat(str(newFiles[index]))
size1 = stat.st_size
pygame.time.wait(100)
stat = os.stat(str(newFiles[index]))
size2 = stat.st_size
while size2 > size1:
size1 = size2
pygame.time.wait(500)
stat = os.stat(str(newFiles[index]))
size2 = stat.st_size
# procede to load complete file
my delay is so long because somehow pygame (or file-writing) runs
relatively slow on maemo/nokia770. even a delay of 400 milliseconds was
too quick to accommodate the slothly rate of an incoming file.
--
http://mail.python.org/mailman/listinfo/python-list