Computer Science Canada

How to cls in python

Author:  QuantumPhysics [ Mon Oct 08, 2012 1:09 am ]
Post subject:  How to cls in python

I am making a Hangman game with wxPython (I will release the download for it after I finish). My question is how do I clear the run-time screen in python, I don't mean os.system('cls'). The python shell on its own. How do I clear it when it gets to the command to clear. In other words what is the syntax to clear screen?

RE: I am using ActivePython 2.73 so I have every single external lib included.

Thanks
~Sincerly,
QP

Author:  Aange10 [ Mon Oct 08, 2012 7:50 am ]
Post subject:  RE:How to cls in python

In Turing cls() will just draw a big square over everything that is the same as your background color (default is white).

So if you want Turing's Cls() command, just draw a white square the size of the window onto the buffer.

Author:  mirhagk [ Mon Oct 08, 2012 9:17 am ]
Post subject:  RE:How to cls in python

You also could just move the shapes off screen,

Author:  QuantumPhysics [ Mon Oct 08, 2012 10:21 am ]
Post subject:  RE:How to cls in python

Hmm, thanks for that guys!


: