| | |
Clearing screen in Python (was: omg noob prob plz help)
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
You can use the command shell:
or
or
Actually, the best way is to design your program so you don't need the clear the screen.
Python Syntax (Toggle Plain Text)
# with windows import os os.system("CLS")
Python Syntax (Toggle Plain Text)
# with linux import os os.system('clear')
Python Syntax (Toggle Plain Text)
# if you don't mind that the cursor is at the bottom print '\n' * 25
Last edited by vegaseat; Aug 15th, 2006 at 7:45 pm.
May 'the Google' be with you!
![]() |
Similar Threads
- Python noob needs random help (Python)
- pc problem ! (Troubleshooting Dead Machines)
- Clearing the screen (C++)
Other Threads in the Python Forum
- Previous Thread: sessions in python
- Next Thread: Difference between Dispatch and DispatchEX
| Thread Tools | Search this Thread |
Tag cloud for Python
abrupt ansi anti apache approximation array backend beginner binary book builtin calculator chmod code converter countpasswordentry curved dan08 dictionaries dictionary drive dynamic examples excel file filename float format function gui heads homework import inches input java launcher library line lines linux list lists loop mouse mysql mysqlquery number numbers numeric output parsing path phonebook plugin pointer port prime programming progressbar projects py2exe pygame pyqt pysimplewizard python random recursion redirect refresh scrolledtext software statictext statistics string strings sum table terminal text textarea thread threading time tkinter tlapse trick tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable windows wordgame write wxpython






