IDLE: completions toplevel blank on Tk Aqua 8.7 #104499
Description
cpython/Lib/idlelib/autocomplete_w.py
Lines 185 to 190 in 27d8ecd
Using wm geometry
to move an overrideredirect toplevel far enough offscreen triggers a strange bug in recent Tk Aqua 8.7 (assuming it isn’t actually a macOS bug) which leaves the toplevel completely blank. I have reported it upstream: https://core.tcl-lang.org/tk/tktview/132dd3d350
However, I would like to see if IDLE can make a simple change to avoid the issue, in case Tk Aqua does not address it soon. Moving a toplevel far offscreen to hide it while configuring its contents seems improper, as opposed to something like withdrawing it. Hiding the toplevel to avoid visual artifacts is probably no longer necessary, except maybe on something sufficiently slow like X11 forwarding. IDLE also does not make a similar effort to temporarily hide the toplevel for calltips.
So I would suggest making this wm_geometry()
call only when acw._windowingsystem == 'x11'
or at least acw._windowingsystem != 'aqua'
.
Linked PRs
Metadata
Assignees
Type
Projects
Status
Done