FYI: Modifying IDLE
From
Stefan Ram@21:1/5 to
All on Mon Jun 19 15:49:38 2023
Where you can modify IDLE:
"getfilename" of "runscript.py": Right before "if autosave
and filename:", you can define your own filename for the case
that "not filename" is True. This way you can generate a new
filename there, and the user can just save a new (yet unnamed)
file without the hassle of having to think about a filename!
"writefile" of "iomenu.py": At the end of the try block you
can add additioncal code to save a copy of the file (with a
name that includes the current timestamp) to a separate backup
directory. Now, if you mess up, you can find previous versions
in that directory. (Who needs a version control system?)
"_setup_dialog(self)" in IDLE 3.11: Three calls to "_setup_dialog"
is everything that keeps IDLE 3.11 from running under Python
3.9. Ok, some dialogs may not appear as intended, but you probably
are not going to need them ...
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)