]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24570: Idle: make calltip and completion boxes appear on Macs
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 27 Sep 2015 00:03:51 +0000 (20:03 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 27 Sep 2015 00:03:51 +0000 (20:03 -0400)
affected by a tk regression.  Initial patch by Mark Roseman.

Lib/idlelib/AutoCompleteWindow.py
Lib/idlelib/CallTipWindow.py

index 27b0e56bd58c5f36de8f50819e5bc24cee97210f..205a29be6cecf542fceeef1278247216f258a5af 100644 (file)
@@ -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))
index 77384a0dd45340f49f9f35f50ccb2bcc05251f45..90c2d7ceb83ba3ca03c08ab25a3cb84a99af662b 100644 (file)
@@ -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)