Python IDLE Clear Screen problem

Source: Internet
Author: User
Tags clear screen

Original link: http://www.cnblogs.com/maybego/p/3234055.html

Practice success under the Windows7.

Let me tell you how to use the installation.
1. Downloadclearwindow.py(Right-click-the target is saved as, the format is the end of the PY, direct click will open the script content).
2. Copy the clearwindow.py file and put it in the Python installation directoryPython Xxx\lib\idlelibFollowingxxx for your python version)。
3. Notepad opens the Python xxx\lib\idlelib directoryConfig-extensions.def(Idle extended configuration file), to prevent errors, you can copy a backup before opening it.
4, modify the Config-extensions.def, add the following at the end, and then save the exit:
[ClearWindow]
Enable=1
Enable_editor=0
Enable_shell=1
[Clearwindow_cfgbindings]
Clear-window=<control-key-;>
5. Open Python's idle,options option to see the addedClear Shell window Ctrl +;。 6. In the idle input code, and then press CTRL +, and found that the input code can be cleared.

Python IDLE Clear Screen problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.