summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-08-03 02:50:01 (GMT)
committerGitHub <noreply@github.com>2018-08-03 02:50:01 (GMT)
commit9beaef6225cdae972b1cccd5310828cc29bf9d33 (patch)
tree3e4f49b0b325ea8431dde02c298c06eb6201a9d0 /Lib
parentbcd1d971b66f529cbd450aca438275b868031605 (diff)
downloadcpython-9beaef6225cdae972b1cccd5310828cc29bf9d33.zip
cpython-9beaef6225cdae972b1cccd5310828cc29bf9d33.tar.gz
cpython-9beaef6225cdae972b1cccd5310828cc29bf9d33.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/calltip_w.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py
index 34531f4..1b1ffc5 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -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,