Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9beaef6

Browse files
authored
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.
1 parent bcd1d97 commit 9beaef6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/idlelib/calltip_w.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)