gh-50393: "Clear and restart" IDLE shell windows#21682
gh-50393: "Clear and restart" IDLE shell windows#21682ZackerySpytz wants to merge 1 commit intopython:mainfrom
Conversation
Add a "Clear and Restart" item to the "Shell" menu. This can be used to clear the contents of the shell window.
| </dd> | ||
| <dt>Restart Shell</dt><dd><p>Restart the shell to clean the environment.</p> | ||
| </dd> | ||
| <dt>Clear and Restart</dt><dd><p>Restart the shell and clear the contents of the shell window.</p> |
There was a problem hiding this comment.
This file is generated from the IDLE doc: Doc/librarary/idle.rst. Edit latter instead.
| console.text.mark_unset("iomark") | ||
| console.text.delete("0.0", "end") | ||
| console.resetoutput() | ||
| console.write_header() |
There was a problem hiding this comment.
I am not sure we need this. And the new function.
| ('shell', [ | ||
| ('_View Last Restart', '<<view-restart>>'), | ||
| ('_Restart Shell', '<<restart-shell>>'), | ||
| ('_Clear and Restart', '<<clear-restart-shell>>'), |
There was a problem hiding this comment.
I think Clear shell might be sufficient.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Add a "Clear and Restart" item to the "Shell" menu. This can be used
to clear the contents of the shell window.
https://bugs.python.org/issue6143