Sujet : Re: IDLE editor suggestion.
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 13. Dec 2023, 12:41:17
Autres entêtes
Organisation : Stefan Ram
Message-ID : <IDLE-20231213123848@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
"Steve GS" <
Gronicus@SGA.Ninja> 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".