Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to cls in python
Index -> Programming, Python -> Python Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
QuantumPhysics




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: 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.
mirhagk




PostPosted: Mon Oct 08, 2012 9:17 am   Post subject: RE:How to cls in python

You also could just move the shapes off screen,
QuantumPhysics




PostPosted: Mon Oct 08, 2012 10:21 am   Post subject: RE:How to cls in python

Hmm, thanks for that guys!
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: