From: Terry Jan Reedy Date: Sat, 26 Sep 2015 22:50:26 +0000 (-0400) Subject: Issue #24988: Idle ScrolledList context menus (used in debugger) X-Git-Tag: v3.5.1rc1~269^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00e4ce3a36eaf22e14dc6915ab482e7605ce1b72;p=python Issue #24988: Idle ScrolledList context menus (used in debugger) now work on Mac Aqua. Patch by Mark Roseman. --- diff --git a/Lib/idlelib/ScrolledList.py b/Lib/idlelib/ScrolledList.py index 71ec5470b4..53576b5f82 100644 --- a/Lib/idlelib/ScrolledList.py +++ b/Lib/idlelib/ScrolledList.py @@ -1,4 +1,5 @@ from tkinter import * +from idlelib import macosxSupport class ScrolledList: @@ -22,7 +23,11 @@ class ScrolledList: # Bind events to the list box listbox.bind("", self.click_event) listbox.bind("", self.double_click_event) - listbox.bind("", self.popup_event) + if macosxSupport.isAquaTk(): + listbox.bind("", self.popup_event) + listbox.bind("", self.popup_event) + else: + listbox.bind("", self.popup_event) listbox.bind("", self.up_event) listbox.bind("", self.down_event) # Mark as empty