thanks

--- On Sat, 5/16/09, Tyler Laing <trinio...@gmail.com> wrote:

From: Tyler Laing <trinio...@gmail.com>
Subject: Re: [pygame] This one baffles me
To: pygame-users@seul.org
Date: Saturday, May 16, 2009, 1:52 PM

Easy:

f=open(filename, 'r')
text=f.read()
text=text.replace('\t', '    ')
f.close()
f=open(filename, 'w')
f.write(text)
f.close()

Done!


On Sat, May 16, 2009 at 11:39 AM, Yanom Mobis <ya...@rocketmail.com> wrote:


thanks. anyway, how would i write a script that converts all blocks of four 
spaces to tabs?

--- On Fri, 5/15/09, Tyler Laing <trinio...@gmail.com> wrote:


From: Tyler Laing <trinio...@gmail.com>
Subject: Re: [pygame] This one baffles me

To: pygame-users@seul.org
Date: Friday, May 15, 2009, 9:54 PM

I took a look at main. Apparently the issue was a common python gotcha, mixing 
up spaces and tabs.


Here's the fixed file.

-Tyler

On Fri, May 15, 2009 at 7:34 PM, Yanom Mobis <ya...@rocketmail.com>
 wrote:



my game (attached) just gives a black screen and hangs (has to be shut down 
with xkill) when started. Is there a problem with the code?



      


-- 
Visit my blog at http://oddco.ca/zeroth/zblog




      


-- 
Visit my blog at http://oddco.ca/zeroth/zblog




      

Reply via email to