[Python-checkins] bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)

Miss Islington (bot) webhook-mailer at python.org
Thu Aug 2 23:39:41 EDT 2018


https://github.com/python/cpython/commit/ffd6364745dbeb7269c0e4376b63bf76bc44bcc6
commit: ffd6364745dbeb7269c0e4376b63bf76bc44bcc6
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-08-02T20:39:36-07:00
summary:

bpo-34275: Make IDLE calltips always visible on Mac.  (GH-8639)


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 at udel.edu>

files:
A Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst
M Lib/idlelib/calltip_w.py

diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py
index 34531f431a67..1b1ffc59483d 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -72,6 +72,7 @@ def showtip(self, text, parenleft, parenright):
                            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
index 000000000000..d7eba7ad3cf4
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst
@@ -0,0 +1,2 @@
+Make IDLE calltips always visible on Mac. Some MacOS-tk combinations need
+.update_idletasks(). Patch by Kevin Walzer.



More information about the Python-checkins mailing list