]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
authorJohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com>
Tue, 10 Dec 2019 00:30:01 +0000 (02:30 +0200)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 10 Dec 2019 00:30:01 +0000 (19:30 -0500)
This has happened on some versions of Ubuntu.

Lib/idlelib/NEWS.txt
Lib/idlelib/autocomplete_w.py
Misc/NEWS.d/next/IDLE/2019-11-29-23-44-11.bpo-38943.8pUKKs.rst [new file with mode: 0644]

index 90e7d801535f59cba4b8ca7f5378d530a10d8802..304cf6375f7dce503b6b7f1b9775a26a26c5f7f4 100644 (file)
@@ -3,6 +3,9 @@ Released on 2020-10-05?
 ======================================
 
 
+bpo-38943: Fix autocomplete windows not always appearing on some
+systems.  Patch by Johnny Najera.
+
 bpo-38944: Excape key now closes IDLE completion windows.  Patch by
 Johnny Najera.
 
index f20b633099788609a2969688a05d6229f5f4bee4..0643c092c6e54818b65ac74063ae1d0df114a59a 100644 (file)
@@ -257,6 +257,7 @@ class AutoCompleteWindow:
             # place acw above current line
             new_y -= acw_height
         acw.wm_geometry("+%d+%d" % (new_x, new_y))
+        acw.update_idletasks()
 
         if platform.system().startswith('Windows'):
             # See issue 15786. When on Windows platform, Tk will misbehave
diff --git a/Misc/NEWS.d/next/IDLE/2019-11-29-23-44-11.bpo-38943.8pUKKs.rst b/Misc/NEWS.d/next/IDLE/2019-11-29-23-44-11.bpo-38943.8pUKKs.rst
new file mode 100644 (file)
index 0000000..5c9323e
--- /dev/null
@@ -0,0 +1,2 @@
+Fix IDLE autocomplete windows not always appearing on some systems.
+Patch by Johnny Najera.