How To Clear Screen In Python Idle
Python3 comes with editor iDLE manual clear screen processing
Recent value uses IDLE to learn Python, after each run, find the IDLE's shell window right click, no clear screen option, find shortcut keys, find it for a long time, did not find which option is a clear screen, extremely inconvenient, so . After turning over a big one, I didn't find which shortcut key to directly clean up.
I have once again, I found a link on the Internet, then downloaded the file to try, I can add the shortcut button of the clear screen to the IDLE window, the specific link address is forgotten, here the specific steps are also posted Record, already test, you can implement click button or use shortcuts to make a clear screen,
Thanks again to the plug-in plug-in, just that this computer should be reconfigured, put the picture also give the picture directly to use, the big gods are ignored, and the development software is also floating.
The default iDle shell is no clear screen software:
Only the above zzdummy here will be mentioned below.
You can also try to modify a fast, so that I will use it here, I modified the default shortcut Ctrl + i to modify the original default Ctrl + L, modify, this to see personal habits, you can change it into your own shortcut .
First, download the ClearWindow.py file plugins edited by God, if you can't find it, you can try it from me. Download and place it to the python directory you installed, here my Python installation directory is C: \ Program Files \ Python38 \, so I need to open the following directory:
C:\Program Files\Python38\Lib\idlelib\
Second, find the config-extensions.def file under the LIB directory under the Python directory on the local computer. This is the configuration file, you can back up first, I first created a backup copy.
Then, use the text editor software, open the config-extensions.def file, note: If administrator privileges need to use by default, you need to have certain permissions to edit it normally and save it. I will copy it directly, then use text editing, Pull to the bottom side, you can see some of the ZZDummy's code options of the above cut-up:
Copy the above code and modify the zzdummy and the corresponding parameters:
Here I am modifying the shortcut to Ctrl + L shortcuts.
After the modification is complete, save the file, because the file requires certain permissions, it may be prompted, so I will copy it directly and then replace it directly after the modification is completed.
C:\Program Files\Python38\Lib\idlelib\config-extensions.def
After the replacement is complete, reopen the IDLE and then see the shortcut and the configured clear screen button.
After outputting full screen, you can use Ctrl + L to clear the screen.
Only for recording, God flew!
Related download operations, you can refer to the following link:
Clear windows.py
How To Clear Screen In Python Idle
Source: https://www.programmersought.com/article/13468165451/
Posted by: harttarin1970.blogspot.com

0 Response to "How To Clear Screen In Python Idle"
Post a Comment