[issue6143] IDLE - an extension to clear the shell window

2019-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: An SO question today got me to look more at SO questions and discussion, and this appears to be the most requested feature. https://stackoverflow.com/questions/1432480/any-way-to-clear-pythons-idle-window - 2009, 129 upvotes, 32 answers (not all read yet)

[issue6143] IDLE - an extension to clear the shell window

2018-06-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The way to clear an editor window at least on Windows is ^A (select all) and delete, which can be any of BS (backspace) or DEL or ^X (Cut). The latter 'moves to the clipboard. In Shell, select all selects everything, but ^X enters '^x', the other 2 do

[issue6143] IDLE - an extension to clear the shell window

2017-09-28 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list

[issue6143] IDLE - an extension to clear the shell window

2017-02-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alwx, please do not change the headers. IDLE menu commands cannot be invoked from a program. -- type: resource usage -> behavior versions: +Python 3.6, Python 3.7 -Python 2.7 ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2017-02-13 Thread Alex
Alex added the comment: The ClearWindow.py extension works well with the specified shortcut, How can i invoke it in my source code to clear the window ? Thanks in advance. -- nosy: +Alex type: enhancement -> resource usage versions: +Python 2.7 -Python 3.6

[issue6143] IDLE - an extension to clear the shell window

2016-08-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: -martin.panter ___ Python tracker ___ ___

[issue6143] IDLE - an extension to clear the shell window

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Comments on taleinat.20140219.IDLE_ClearWindow_extension.patch. In 3.6, module names are lowercase, not too long. Also, I am trying to consolidate small files, not multiply them. I am trying to convert existing built-in extensions to built-in features, not

[issue6143] IDLE - an extension to clear the shell window

2016-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 3.6 just got a patch to squeeze duplicate traceback lines, as with recursion-depth errors. -- ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2016-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is lower priority to me than many others, but there does seem to be at least some demand shown on Stackoverflow. So I have not dismissed it completely. -- ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2015-05-01 Thread irdb
Changes by irdb dalba.w...@gmail.com: -- nosy: +irdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list mailing list

[issue6143] IDLE - an extension to clear the shell window

2014-02-23 Thread Tal Einat
Tal Einat added the comment: Terry, please do give Squeezer a try before making a decision! Squeezer may be slightly more complex than ClearWindow in concept and in code, but IMO it is simpler and more appropriate for use by a novice user. I'm attaching a screenshot to give a feeling of what

[issue6143] IDLE - an extension to clear the shell window

2014-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, I will. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list mailing list

[issue6143] IDLE - an extension to clear the shell window

2014-02-19 Thread Tal Einat
Tal Einat added the comment: Attaching a patch adding a ClearWindow extension for IDLE. I took some ideas from Roger's version in IdleX, but I wrote this version from scratch and it is significantly different in many aspects. This patch includes extensive tests with 98% coverage of

[issue6143] IDLE - an extension to clear the shell window

2014-02-19 Thread Tal Einat
Tal Einat added the comment: Attached another patch which adds support for the Squeezer extension to ClearWindow. This is necessary in case the Squeezer extension is added to IDLE. This patch allows ClearWindow to properly remove squeezed text buttons created by Squeezer, and also reinsert

[issue6143] IDLE - an extension to clear the shell window

2014-02-19 Thread Tal Einat
Tal Einat added the comment: Regarding the last patch, see issue1529353 which proposes adding the Squeezer IDLE extension (including patches). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143

[issue6143] IDLE - an extension to clear the shell window

2014-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not looked Idle issues in the last few days because I am working on the unmaintained (since 2006 and 8), embarrassing (~5 bugs in 70 lines), disfunctional mess that tokenize.untokenize has been. It will take me a few more days to finish. Clearing the

[issue6143] IDLE - an extension to clear the shell window

2014-02-16 Thread Tal Einat
Tal Einat added the comment: FYI, with some help from Roger answering various questions, I've cooked up a version of ClearWindow supporting the current version of IDLE. This includes integration with the Squeezer extension. I haven't tested it, however, nor written appropriate tests. I hope

[issue6143] IDLE - an extension to clear the shell window

2014-02-15 Thread Todd Rovito
Changes by Todd Rovito rovit...@rovitotv.org: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list

[issue6143] IDLE - an extension to clear the shell window

2014-02-12 Thread Tal Einat
Tal Einat added the comment: Terry, if I wrote an appropriate patch, would it have a chance of being accepted? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___

[issue6143] IDLE - an extension to clear the shell window

2014-02-12 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list mailing

[issue6143] IDLE - an extension to clear the shell window

2014-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without having read the dialog to know what you mean by appropriate, and how a new patch would be different from Roger's 5 year old patch, or how this issue relates toSqueezer, yes. I have occasionally closed the shell and reopened (perhaps by running a file)

[issue6143] IDLE - an extension to clear the shell window

2014-02-12 Thread Tal Einat
Tal Einat added the comment: The relation to Squeezer is that both of these can be useful when you've had a large amount of output written in the IDLE shell. I prefer Squeezer as a solution for this issue, for two reasons: 1. Squeezer catches long outputs before they are ever written in the

[issue6143] IDLE - an extension to clear the shell window

2014-02-12 Thread Tal Einat
Tal Einat added the comment: Also, note that the new version of Squeezer allows squeezing tracebacks as well as normal output! It does not squeeze them automatically, though; the user must do so manually. -- ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2014-02-11 Thread Tal Einat
Tal Einat added the comment: Removing text before iomark can be done by using the underlying Text widget directly. See how the Squeezer extension does this in issue1529353. This should simplify the implementation significantly. I also took a look at the version of the extension in IdleX. I'm

[issue6143] IDLE - an extension to clear the shell window

2014-02-11 Thread Roger Serwy
Roger Serwy added the comment: Removing text before iomark can be done by using the underlying Text widget directly. See how the Squeezer extension does this in issue1529353. This should simplify the implementation significantly. I agree that the underlying .delete can be called directly,

[issue6143] IDLE - an extension to clear the shell window

2014-02-11 Thread Tal Einat
Tal Einat added the comment: Roger, thanks for the quick response! I'll try to get to working on this in the coming days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___

[issue6143] IDLE - an extension to clear the shell window

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list mailing

[issue6143] IDLE - an extension to clear the shell window

2013-12-09 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list

[issue6143] IDLE - an extension to clear the shell window

2013-04-04 Thread Roger Serwy
Roger Serwy added the comment: In #17632, Raymond suggests adding a Restart and Clear menu item under the Shell menu. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143

[issue6143] IDLE - an extension to clear the shell window

2013-03-28 Thread Roger Serwy
Roger Serwy added the comment: The ClearWindow.py extension as included in the IdleX package contains a more recent version that allows undo with full color tag restoration. -- assignee: - roger.serwy versions: +Python 2.7, Python 3.3, Python 3.4

[issue6143] IDLE - an extension to clear the shell window

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: behavior - feature request versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143

[issue6143] IDLE - an extension to clear the shell window

2009-06-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I just tried Squeezer. It's pretty neat and it solves a different problem. Clearing the contents of the shell window should be a simple operation. The undo operation doesn't restore iomark properly, nor does it restore tags. I've uploaded a

[issue6143] IDLE - an extension to clear the shell window

2009-06-13 Thread Tal Einat
Tal Einat talei...@users.sourceforge.net added the comment: First of all I think that the Squeezer (issue #1529353) extension is more useful and solves most of the problems that this proposed feature is set to solve, e.g. issue #1442493. IMO the second method you offer - temporarily moving

[issue6143] IDLE - an extension to clear the shell window

2009-05-29 Thread Roger Serwy
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