Differences
This shows you the differences between two versions of the page.
python_wiki:clear_screen [2014/11/19 22:10] billdozor created |
python_wiki:clear_screen [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Clear Screen ====== | ||
- | A clear screen function that uses: | ||
- | * sys : to check for platform | ||
- | * subprocess : to send commands to the OS | ||
- | < | ||
- | import sys, | ||
- | |||
- | def clear_screen(): | ||
- | if(sys.platform == " | ||
- | subprocess.call(" | ||
- | else: | ||
- | subprocess.call(" | ||
- | </ |