thanks
--- On Sat, 5/16/09, Tyler Laing <trinioler@xxxxxxxxx> wrote:
From: Tyler Laing <trinioler@xxxxxxxxx> Subject: Re: [pygame] This one baffles me To: pygame-users@xxxxxxxx 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 <yanom@xxxxxxxxxxxxxx> 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 <trinioler@xxxxxxxxx> wrote:
From: Tyler Laing <trinioler@xxxxxxxxx> Subject: Re: [pygame] This one baffles me
To: pygame-users@xxxxxxxx Date: Friday, May 15, 2009, 9:54 PMI 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 <yanom@xxxxxxxxxxxxxx>
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
|