Clearing IDLE's screen?
Miki Tebeka
miki.tebeka at zoran.com
Sun Feb 8 18:12:13 EST 2004
Hell Kurt,
> > I'd like to bind <CTRL+L> so that it will clear IDLE's screen (in the
> > interactive prompt).
> Try this:
>
> def clear():
> for i in range(60):
> print
I'd like to clear the history as well.
> The downside is the buffer can get pretty large. You have to decide
> if that's a problem. It hasn't been for me.
I've found that when the buffer is very big IDLE becomes very slow.
(Happes to me a lot, instead of
>>> print len(open("X").read())
I do
>>> print open("X").read()
)
> The question for the list is, should Clear be orthogonal to Reset or
> should Clear also do a Reset?
IMO it should just clear. I'd like it to remember my previous
definition and just clear the screen.
Miki
More information about the Python-list
mailing list