Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: IDLE editor suggestion. Date: 13 Dec 2023 11:41:17 GMT Organization: Stefan Ram Lines: 27 Expires: 1 Dec 2024 11:59:58 GMT Message-ID: References: <459067d1-4ec4-4263-8be9-4101f525d4d1@mrabarnett.plus.com> <6ee95034-135f-474c-8f09-13deafa9f428@tompassin.net> <599b264e-28e8-4b07-ae4c-2c118b3ff0c0@DancesWithMice.info> <2fa9fe88-efed-469b-885b-a62c7ff53225@mrabarnett.plus.com> <000401da2b12$7756e4c0$6604ae40$@SGA.Ninja> <009801da2cd4$55659320$0030b960$@SGA.Ninja> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de Yydlnuj21xIFxGS+e5LLWQWa5dLNynOj+05MSP21RsHTDY Cancel-Lock: sha1:eGgyOD7I2RgQIAp7kWgEnxovmZY= sha256:gyQZU8zKHyZLiZb4eHuWdKwTg8XSijcYYXFwWpT4lss= X-Copyright: (C) Copyright 2023 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en-US Accept-Language: de-DE-1901, en-US, it, fr-FR "Steve GS" writes: >It would be nice to have a >pull-down text box that lists You can *modify* IDLE so as to adapt it to your needs. To find the source code of IDLE, search for pyshell.py on your file system. The IDLE source files should be in the directory of that file. Here are two examples for possible modifications to IDLE: When you want to run a new program you just typed into the editor, it asks you for a filename. What a distraction! To have a filename auto-generated for you, modify the definition of the function "getfilename" in the file "runscript.py" of IDLE. When you save your source code, IDLE does not write a backup copy into an archive directory, so that you will lose the current version if you modify it later. To have a backup written for every version saved, modify the definition of the function "writefile" in the IDLE source file "iomenu.py".