]> granicus.if.org Git - python/commitdiff
bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Aug 2018 03:33:47 +0000 (20:33 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Aug 2018 03:33:47 +0000 (20:33 -0700)
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
(cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/calltip_w.py
Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst [new file with mode: 0644]

index 34531f431a6763b9e07ea62601a2fe3d63d9cc8a..1b1ffc59483d4167f400657dc467397397dae56f 100644 (file)
@@ -72,6 +72,7 @@ class CalltipWindow:
                            background="#ffffe0", relief=SOLID, borderwidth=1,
                            font = self.widget['font'])
         self.label.pack()
+        tw.update_idletasks()
         tw.lift()  # work around bug in Tk 8.5.18+ (issue #24570)
 
         self.checkhideid = self.widget.bind(CHECKHIDE_VIRTUAL_EVENT_NAME,
diff --git a/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst b/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst
new file mode 100644 (file)
index 0000000..d7eba7a
--- /dev/null
@@ -0,0 +1,2 @@
+Make IDLE calltips always visible on Mac. Some MacOS-tk combinations need
+.update_idletasks(). Patch by Kevin Walzer.