|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
IDLE has no such "clear screen" feature. The best I can recommend is printing blank lines like you suggested.
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Undo also could do the job, though not so much intelligent
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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 ![]() |
|
#7
|
|||
|
|||
|
Damn.. I'm still on Python 2.2
Quote:
Yes, in certain codition, there will be some trouble. |
|
#8
|
||||
|
||||
|
Looks like the clrscr() function we discussed here is getting popular after all
![]() http://forums.devshed.com/t143030/s.html
__________________
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 Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#9
|
|||
|
|||
|
Quote:
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Python - Is there no way to clear the idle screen? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|