Commit d2134c71 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24570: Idle: make calltip and completion boxes appear on Macs

affected by a tk regression.  Initial patch by Mark Roseman.
parent 00e4ce3a
...@@ -192,6 +192,7 @@ class AutoCompleteWindow: ...@@ -192,6 +192,7 @@ class AutoCompleteWindow:
scrollbar.config(command=listbox.yview) scrollbar.config(command=listbox.yview)
scrollbar.pack(side=RIGHT, fill=Y) scrollbar.pack(side=RIGHT, fill=Y)
listbox.pack(side=LEFT, fill=BOTH, expand=True) listbox.pack(side=LEFT, fill=BOTH, expand=True)
acw.lift() # work around bug in Tk 8.5.18+ (issue #24570)
# Initialize the listbox selection # Initialize the listbox selection
self.listbox.select_set(self._binary_search(self.start)) self.listbox.select_set(self._binary_search(self.start))
......
...@@ -72,6 +72,7 @@ class CallTip: ...@@ -72,6 +72,7 @@ class CallTip:
background="#ffffe0", relief=SOLID, borderwidth=1, background="#ffffe0", relief=SOLID, borderwidth=1,
font = self.widget['font']) font = self.widget['font'])
self.label.pack() 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.checkhideid = self.widget.bind(CHECKHIDE_VIRTUAL_EVENT_NAME,
self.checkhide_event) self.checkhide_event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment