http://bugs.python.org/issue6143
I know something similar has been asked a thousand times, which to me indicates that the issue could do with being addressed by the designers.
I have searched and searched and finally found a solution that looks viable (see link above), but I am a complete beginner with Python and need help with how to make it work. I've tried adding the code in the comments section to the config-extensions.def file, and also running the file from IDLE, but no "clear screen" option appears on any menu, nor ctrl+l keyboard shortcut. BTW I'm using python 3.4 on windows.
I'm actually very surprised and even shocked that this functionality is not included as standard for this reason: Python is often recommended as a beginners' language and beginners (including me and also the students I intend to teach this language to once I've learned it) get OVERWHELMED by lots of not-understood text on the screen (syntax errors etc.) What we need as probably one of the most important features is some kind of "panic button" to clear away the mess and let us try again with a blank slate. Closing the application an re-opening it is serious overkill so I can't fathom why this hasn't been considered. If anyone knows who to contact to get this changed I think is is well worth emphasizing the importance of this issue, since it could really be a deal breaker in choosing a language for educational purposes.
However, my main concern here is to get some help with making this work so I can get on and have some fun programming! Any help much appreciated.
Ok, I found the answer to this (and it took two fairly computer literate people a while to work out):
Put the following code from the comments section of ClearWindow.py into config-extensions.def (C:\Python34\Lib\idlelib...)
Next, in the same folder (C:\Python34\Lib\idlelib) put the whole ClearWindow.py file. Ta Da! File pasted below for convenience: