diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-26 22:50:20 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-26 22:50:20 (GMT) |
| commit | 83cce4988cc5b00b7b960559143c4418b1bd417a (patch) | |
| tree | 7230888f0ef0135614035188b57a3702dd771a2a /Lib/idlelib/ScrolledList.py | |
| parent | d2a4073db2e267d8c23c094386aaedbbdaf1bf81 (diff) | |
| download | cpython-83cce4988cc5b00b7b960559143c4418b1bd417a.zip cpython-83cce4988cc5b00b7b960559143c4418b1bd417a.tar.gz cpython-83cce4988cc5b00b7b960559143c4418b1bd417a.tar.bz2 | |
Issue #24988: Idle ScrolledList context menus (used in debugger)
now work on Mac Aqua. Patch by Mark Roseman.
Diffstat (limited to 'Lib/idlelib/ScrolledList.py')
| -rw-r--r-- | Lib/idlelib/ScrolledList.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/idlelib/ScrolledList.py b/Lib/idlelib/ScrolledList.py index e235661..fd9f0ff 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("<ButtonRelease-1>", self.click_event) listbox.bind("<Double-ButtonRelease-1>", self.double_click_event) - listbox.bind("<ButtonPress-3>", self.popup_event) + if macosxSupport.isAquaTk(): + listbox.bind("<ButtonPress-2>", self.popup_event) + listbox.bind("<Control-Button-1>", self.popup_event) + else: + listbox.bind("<ButtonPress-3>", self.popup_event) listbox.bind("<Key-Up>", self.up_event) listbox.bind("<Key-Down>", self.down_event) # Mark as empty |
