The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Python - Is there no way to clear the idle screen?
Discuss Python - Is there no way to clear the idle screen? in the Python Programming forum on Dev Shed. Python - Is there no way to clear the idle screen? Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 29th, 2004, 05:15 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Python - Is there no way to clear the idle screen?
I've been looking around for hours and it seems there is no way to clear the screen when running your program in the idle window.
The reason I'm looking is we do minor programming assignments in Python that we only run in the idle window. Its easy enough to clear the screen in a dos window but I have not found a definatvie "Its not possible" to do it the idle window.
The only thing I see possible at the moment is to write off blank lines till clear but that seems a little wasteful.
I've seen a couple references to backspacing but it doesn't seem to work in idle.
Any help would be appriciated, if anything just a "no its not possible" so I can give up looking! This is driving me crazy
|

April 29th, 2004, 08:22 PM
|
|
Registered User
|
|
Join Date: Apr 2003
Posts: 25
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
IDLE has no such "clear screen" feature. The best I can recommend is printing blank lines like you suggested.
|

April 30th, 2004, 03:09 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
|
I'm with mamba - there is no way to do this in IDLE - blank lines are very useful though. On the other hand you can always restart IDLE now and again to prevent things from getting too bloated.
Mark.
__________________
programming language development: www.netytan.com – Hula
|

April 30th, 2004, 03:34 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
|
Undo also could do the job, though not so much intelligent
|

April 30th, 2004, 08:27 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
Also i dont think Undo works the same in the version of IDLE packaged with Python 2.3 which is a bit of a bummer - but then i guess undo only removed the line from IDLE rather than undoing the effect on the session in earlier versions. Ah well
Mark.
|

April 30th, 2004, 12:49 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Thanks for the responces guys. I'm not familiar with undo but I'll take a look at the documentation for it.
At least I can rest easy knowing its not possible!
Thanks again 
|

April 30th, 2004, 01:27 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
Damn.. I'm still on Python 2.2
Quote: | Originally Posted by netytan
...but then i guess undo only removed the line from IDLE rather than undoing the effect on the session in earlier versions. Ah well
Mark. |
Yes, in certain codition, there will be some trouble.
|

April 30th, 2004, 01:41 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|

May 1st, 2004, 04:23 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
Quote: | Originally Posted by jarchn I've been looking around for hours and it seems there is no way to clear the screen when running your program in the idle window.
|
You have the source code to Idle, so it should be possible to modify it to do what you want. Perhaps you could set it as an exercise for the class.
Dave - The Developers' Coach
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|