[Tutor] printing a list to a window

Wayne srilyk at gmail.com
Wed Jun 17 02:11:55 CEST 2009

On Tue, Jun 16, 2009 at 4:27 PM, Essah Mitges <e_mitges at hotmail.com> wrote:

> What I am trying to do is print a high score text file to a pygame window
> it kinda works...I don't know how to go about doing this...

Do you know how to print text to a window?

to read a file, just in a terminal window:

f = open('somefile.txt', 'r')

for line in f.readlines():
  print line

Just translate that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090616/2738b273/attachment-0001.htm>

More information about the Tutor mailing list