mirror of
https://github.com/python/cpython.git
synced 2025-09-21 16:10:33 +00:00
Merge with 3.4
This commit is contained in:
commit
df1fe78acb
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
from tkinter import *
|
from tkinter import *
|
||||||
|
from idlelib import macosxSupport
|
||||||
|
|
||||||
class ScrolledList:
|
class ScrolledList:
|
||||||
|
|
||||||
|
@ -22,6 +23,10 @@ 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)
|
||||||
|
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("<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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue