New submission from Roger Serwy <roger.se...@gmail.com>: I noticed that the feature to clear the shell window has been a discussion topic in the IDLE-dev archives for a few years. Here's an extension that can clear the contents of the shell window. It provides "Clear Shell Window" under "Options" and a <Ctrl-L> key binding.
The source code provides two methods to do this. The ModifiedUndoDelegator prevents changing the contents of the text widget before "iomark". One solution is to disable the filter, make the changes, then re-enable it. Another solution is move "iomark" to the beginning of the document. Any thoughts? ---------- components: IDLE files: ClearWindow.py messages: 88539 nosy: serwy severity: normal status: open title: IDLE - an extension to clear the shell window type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14116/ClearWindow.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6143> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com