[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

RE: [pygame] Clearing the Screen



Or, if you are on Windows and really want to hack it quickly,
os.system('cls') will clear the screen.

Ex:

import os
print 'hello'
raw_input()
os.system('cls')
print 'page two'
raw_input()
os.system('cls')
print 'last page'

-Scott

-----Original Message-----
From: owner-pygame-users@xxxxxxxx [mailto:owner-pygame-users@xxxxxxxx]
On Behalf Of Sami Hangaslammi
Sent: Thursday, May 18, 2006 3:34 AM
To: pygame-users@xxxxxxxx
Subject: Re: [pygame] Clearing the Screen

On 5/18/06, Richard Norton <rwtnorton@xxxxxxxxxxxxx> wrote:
> Aside from the *nix "clear" command, you might look into the curses
> module.

Or if you are using Windows, the console module at
http://effbot.org/zone/console-index.htm

-- 
Sami Hangaslammi