mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
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.
This commit is contained in:
parent
bcd1d971b6
commit
9beaef6225
2 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
Make IDLE calltips always visible on Mac. Some MacOS-tk combinations need
|
||||
.update_idletasks(). Patch by Kevin Walzer.
|
||||
Loading…
Add table
Add a link
Reference in a new issue