Commit 00e4ce3a authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24988: Idle ScrolledList context menus (used in debugger)

now work on Mac Aqua.  Patch by Mark Roseman.
parent e48cf7e7
from tkinter import * from tkinter import *
from idlelib import macosxSupport
class ScrolledList: class ScrolledList:
...@@ -22,7 +23,11 @@ class ScrolledList: ...@@ -22,7 +23,11 @@ class ScrolledList:
# Bind events to the list box # Bind events to the list box
listbox.bind("<ButtonRelease-1>", self.click_event) listbox.bind("<ButtonRelease-1>", self.click_event)
listbox.bind("<Double-ButtonRelease-1>", self.double_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-Up>", self.up_event)
listbox.bind("<Key-Down>", self.down_event) listbox.bind("<Key-Down>", self.down_event)
# Mark as empty # Mark as empty
......
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