Re: Big change to IDLE Shell

Mark Roseman <[email protected]> Tue, 18 May 2021 17:22:10 -0700
Newsgroups gmane.comp.python.idle
Message-ID <[email protected]>
--===============5239726114120687262==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_590E6587-864C-4BB1-9E54-3F94CD1F3C60"


--Apple-Mail=_590E6587-864C-4BB1-9E54-3F94CD1F3C60
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On May 17, 2021, at 10:22 PM, Terry Reedy <[email protected]> wrote:
> 5) Tabbed edit windows (already in IdleX).
>=20
> Tabbed windows, with not just editors on tabs, was one of my initial =
goals 11 years ago, along with using ttk widgets (done).  Other things, =
including a bit of opposition, keep intervening.  I will increment its =
priority.
>=20
> After Roger Sewey, IdleX author, got the commit bit, at my suggestion, =
he fixed about 10 issues in a few months, and then disappeared and quit =
contributing.  To do tabbed windows, he must have made some preliminary =
changes that could have already been merged.  (Separate the editor =
window into a menu window and a frame.)  But no one else has yet dived =
into his tabbed window code to see if it is usable.  Mark Roseman also =
said he did the same but I have not seen his code either.
>=20
> Part of the holdup is that the current class inheritance tree is wrong =
and needs to be refactored, without breaking things.


Is there interest in building something akin to =
https://tkdocs.com/images/idle_onewindow.png =
<https://tkdocs.com/images/idle_onewindow.png> into IDLE in the =
foreseeable future?

I=E2=80=99ve considered updating the code I did a while back =
(https://github.com/roseman/idle <https://github.com/roseman/idle>) but =
getting it from where it was to a series of patches that would actually =
find it=E2=80=99s way into IDLE I thought would be challenging due to =
multiple steps needed.

As you say, restructuring things so that editors, shells, debuggers etc. =
are assumed to fit in frames and not be their own toplevel was a =
starting point (e.g., I introduced a generic =E2=80=98Component=E2=80=99 =
class).

And to be honest, how to determine what is considered an =E2=80=9Cacceptab=
le" UI change for IDLE remains wholly opaque to me. There are still many =
things in there that leave me scratching my head.

Some things would be simplified now (e.g., at that point ttk wasn=E2=80=99=
t assumed) but I=E2=80=99m still not confident about reworking that, =
with proper testing, etc. to the point that it would be accepted into =
the main codebase.

Mark


--Apple-Mail=_590E6587-864C-4BB1-9E54-3F94CD1F3C60
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On May 17, 2021, at 10:22 PM, Terry Reedy &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt; =
wrote:</div><div class=3D""><div class=3D"">5) Tabbed edit windows =
(already in IdleX).<br class=3D""><br class=3D"">Tabbed windows, with =
not just editors on tabs, was one of my initial goals 11 years ago, =
along with using ttk widgets (done). &nbsp;Other things, including a bit =
of opposition, keep intervening. &nbsp;I will increment its priority.<br =
class=3D""><br class=3D"">After Roger Sewey, IdleX author, got the =
commit bit, at my suggestion, he fixed about 10 issues in a few months, =
and then disappeared and quit contributing. &nbsp;To do tabbed windows, =
he must have made some preliminary changes that could have already been =
merged. &nbsp;(Separate the editor window into a menu window and a =
frame.) &nbsp;But no one else has yet dived into his tabbed window code =
to see if it is usable. &nbsp;Mark Roseman also said he did the same but =
I have not seen his code either.<br class=3D""><br class=3D"">Part of =
the holdup is that the current class inheritance tree is wrong and needs =
to be refactored, without breaking things.<br =
class=3D""></div></div></blockquote></div><br class=3D""><div =
class=3D""><br class=3D""></div><div class=3D"">Is there interest in =
building something akin to&nbsp;<a =
href=3D"https://tkdocs.com/images/idle_onewindow.png" =
class=3D"">https://tkdocs.com/images/idle_onewindow.png</a>&nbsp;into =
IDLE in the foreseeable future?</div><div class=3D""><br =
class=3D""></div><div class=3D"">I=E2=80=99ve considered updating the =
code I did a while back (<a href=3D"https://github.com/roseman/idle" =
class=3D"">https://github.com/roseman/idle</a>) but getting it from =
where it was to a series of patches that would actually find it=E2=80=99s =
way into IDLE I thought would be challenging due to multiple steps =
needed.</div><div class=3D""><br class=3D""></div><div class=3D"">As you =
say, restructuring things so that editors, shells, debuggers etc. are =
assumed to fit in frames and not be their own toplevel was a starting =
point (e.g., I introduced a generic =E2=80=98Component=E2=80=99 =
class).</div><div class=3D""><br class=3D""></div><div class=3D"">And to =
be honest, how to determine what is considered an =E2=80=9Cacceptable" =
UI change for IDLE remains wholly opaque to me. There are still many =
things in there that leave me scratching my head.</div><div class=3D""><br=
 class=3D""></div><div class=3D"">Some things would be simplified now =
(e.g., at that point ttk wasn=E2=80=99t assumed) but I=E2=80=99m still =
not confident about reworking that, with proper testing, etc. to the =
point that it would be accepted into the main codebase.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Mark</div><div =
class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_590E6587-864C-4BB1-9E54-3F94CD1F3C60--

--===============5239726114120687262==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
IDLE-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/idle-dev

--===============5239726114120687262==--