diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-27 00:03:51 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-27 00:03:51 (GMT) |
commit | 0c58d31ba1080aa4308f9352e1609876286bc9db (patch) | |
tree | 707059ff95b07dc9da76f1512b52983ed56224bc /Lib/idlelib | |
parent | 83cce4988cc5b00b7b960559143c4418b1bd417a (diff) | |
download | cpython-0c58d31ba1080aa4308f9352e1609876286bc9db.zip cpython-0c58d31ba1080aa4308f9352e1609876286bc9db.tar.gz cpython-0c58d31ba1080aa4308f9352e1609876286bc9db.tar.bz2 |
Issue #24570: Idle: make calltip and completion boxes appear on Macs
affected by a tk regression. Initial patch by Mark Roseman.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/AutoCompleteWindow.py | 1 | ||||
-rw-r--r-- | Lib/idlelib/CallTipWindow.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index 27b0e56..205a29b 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py @@ -192,6 +192,7 @@ class AutoCompleteWindow: scrollbar.config(command=listbox.yview) scrollbar.pack(side=RIGHT, fill=Y) listbox.pack(side=LEFT, fill=BOTH, expand=True) + acw.lift() # work around bug in Tk 8.5.18+ (issue #24570) # Initialize the listbox selection self.listbox.select_set(self._binary_search(self.start)) diff --git a/Lib/idlelib/CallTipWindow.py b/Lib/idlelib/CallTipWindow.py index 77384a0..90c2d7c 100644 --- a/Lib/idlelib/CallTipWindow.py +++ b/Lib/idlelib/CallTipWindow.py @@ -72,6 +72,7 @@ class CallTip: background="#ffffe0", relief=SOLID, borderwidth=1, font = self.widget['font']) self.label.pack() + tw.lift() # work around bug in Tk 8.5.18+ (issue #24570) self.checkhideid = self.widget.bind(CHECKHIDE_VIRTUAL_EVENT_NAME, self.checkhide_event) |