From 00e4ce3a36eaf22e14dc6915ab482e7605ce1b72 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 26 Sep 2015 18:50:26 -0400 Subject: [PATCH] Issue #24988: Idle ScrolledList context menus (used in debugger) now work on Mac Aqua. Patch by Mark Roseman. --- Lib/idlelib/ScrolledList.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/ScrolledList.py b/Lib/idlelib/ScrolledList.py index 71ec5470b4a..53576b5f82e 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