<div dir="auto">I had the same thought — “why would anyone want semi-transparent Windows?”</div><div dir="auto"><br></div><div dir="auto">I always assumed the feature existed to show off GPU features.</div><div dir="auto"><br></div><div dir="auto">But here we have a user who found this so useful that they wrote code to do it!</div><div dir="auto"><br></div><div dir="auto">So I think it would be interesting to try and understand the use case, rather than dismissing it.</div><div dir="auto"><br></div><div dir="auto">—Guido</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 6, 2020 at 21:41 Terry Reedy <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/6/2020 7:02 AM, 17317302007 wrote:<br>
> <br>
> Cool IDLE Developers,<br>
> <br>
> I am some little user who loves IDLE (xD). When I was taking online <br>
> courses, I thought it is better if I can use a half-transparent window <br>
> to program, while having sources or teachers' codes in the background.<br>
> (btw I use the "Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) <br>
> [MSC v.1900 64 bit (AMD64)] on win32" and I do not know if that feature <br>
> is already there in newer versions.)<br>
> For that reason, I yeeted through the code and added an "Alpha" tab on <br>
> the menu to change the transparency of the editor, being noobified by <br>
> myself (yeah I'm a noob).<br>
> Actually I just made little changes to the code...<br>
> <br>
> Thanks for making this IDLE pure Python so I have the chance to do this!<br>
> the editor.py is attached below!<br>
<br>
(In the future, please post plain text rather than html.)<br>
<br>
The last time partial transparency was discussed, the answer was that tk <br>
did not support it.  However, wm attributes now support an 'alpha' <br>
attribut (and some other new ones).  I am at least glad you pushed me to <br>
look.  But it might be ignored on any particular window manager system.<br>
<br>
For testing, the patch added these lines<br>
         text.bind("<<alpha-0>>", lambda event: <br>
self.top.attributes("-alpha",1))<br>
         text.bind("<<alpha-1>>", lambda event: <br>
self.top.attributes("-alpha",0.8))<br>
         text.bind("<<alpha-2>>", lambda event: <br>
self.top.attributes("-alpha",0.6))<br>
         text.bind("<<alpha-3>>", lambda event: <br>
self.top.attributes("-alpha",0.4))<br>
<br>
and an 'Alpha' menu after the 'Help' menu.<br>
<br>
However, the idlelib changes since 3.6.6 are so extensive that current <br>
IDLE will not start with the revised editor.py even after the easy <br>
fixups. So I have not tested it yet.<br>
<br>
Notepad++ has an option to decrease the alpha of the Find dialog to an <br>
adjustable number either when it looses focus or always.  I believe that <br>
one of these may have been the default, so some people must like it. <br>
But I did not and turned it off.  To me, it seems to me even less likely <br>
to be useful for editor windows.<br>
<br>
-- <br>
Terry Jan Reedy<br>
<br>
_______________________________________________<br>
IDLE-dev mailing list<br>
<a href="mailto:IDLE-dev@python.org" target="_blank">IDLE-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/idle-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/idle-dev</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--Guido (mobile)</div>