changeset: 98289:b5bc7e9dab77 branch: 2.7 parent: 98285:bf11034f0291 user: Terry Jan Reedy date: Sat Sep 26 20:03:51 2015 -0400 files: Lib/idlelib/AutoCompleteWindow.py Lib/idlelib/CallTipWindow.py description: Issue #24570: Idle: make calltip and completion boxes appear on Macs affected by a tk regression. Initial patch by Mark Roseman. diff -r bf11034f0291 -r b5bc7e9dab77 Lib/idlelib/AutoCompleteWindow.py --- a/Lib/idlelib/AutoCompleteWindow.py Sat Sep 26 18:50:20 2015 -0400 +++ b/Lib/idlelib/AutoCompleteWindow.py Sat Sep 26 20:03:51 2015 -0400 @@ -192,6 +192,7 @@ 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 -r bf11034f0291 -r b5bc7e9dab77 Lib/idlelib/CallTipWindow.py --- a/Lib/idlelib/CallTipWindow.py Sat Sep 26 18:50:20 2015 -0400 +++ b/Lib/idlelib/CallTipWindow.py Sat Sep 26 20:03:51 2015 -0400 @@ -72,6 +72,7 @@ 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)