Skip to content

Commit 24a54da

Browse files
authored
[2.7] bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639) (GH-8644)
Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Walzer. (cherry picked from commit 9beaef6) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent dd4d8b4 commit 24a54da

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎Lib/idlelib/CallTipWindow.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def showtip(self, text, parenleft, parenright):
7272
background="#ffffe0", relief=SOLID, borderwidth=1,
7373
font = self.widget['font'])
7474
self.label.pack()
75+
tw.update_idletasks()
7576
tw.lift() # work around bug in Tk 8.5.18+ (issue #24570)
7677

7778
self.checkhideid = self.widget.bind(CHECKHIDE_VIRTUAL_EVENT_NAME,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Make IDLE calltips always visible on Mac. Some MacOS-tk combinations need
2+
.update_idletasks(). Patch by Kevin Walzer.

0 commit comments

Comments
 (0)