How to clear Interactive Window?
Uriel Wittenberg
list at urielw.com
Tue May 27 09:16:56 EDT 2003
I made a 3-line .PY file:
---------------------------------
import os
os.system('cls')
print 'hi'
---------------------------------
I run it in PythonWin. It prints 'hi'. I run it again. It prints 'hi'
again -- now I see TWO hi's, one below the other. I'd like the Interactive
Window cleared whenever I run the program (so after the above I'd only see a
single 'hi').
(Using PythonWin 2.2.2 on WinXP Home.)
"Rony" <rony.steelandt at bucodi.com> wrote in message
news:b34d3835.0305262310.2916ff56 at posting.google.com...
What about :
import os
os.system('cls')
Rony Steelandt
www.bucodi.com
"Uriel Wittenberg" <list at urielw.com> wrote in message
news:<A1oAa.693$ME.211823 at news20.bellglobal.com>...
> I'm using PythonWin 2.2.2 on WinXP Home. Script output goes to the
> Interactive Window. Could someone please advise what command I can put at
> the beginning of my scripts to CLEAR the Interactive Window?
>
> Thanks in advance!
More information about the Python-list
mailing list