summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-23 01:10:22 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-23 01:10:22 (GMT)
commitca33d56f005589967d5b3d77aa807270d5c376ed (patch)
treeb77feb7f88ef5e8961d3a152fc10bdd9ca692992 /Lib/idlelib/PyShell.py
parente20c2a6af48403db3bf843917007f5eaba594d1b (diff)
downloadcpython-ca33d56f005589967d5b3d77aa807270d5c376ed.zip
cpython-ca33d56f005589967d5b3d77aa807270d5c376ed.tar.gz
cpython-ca33d56f005589967d5b3d77aa807270d5c376ed.tar.bz2
Issue #24570: Right-click for context menus now work on Mac Aqual also.
Patch by Mark Roseman.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 688ec14..603e652 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1556,6 +1556,14 @@ def main():
root.withdraw()
flist = PyShellFileList(root)
macosxSupport.setupApp(root, flist)
+
+ if macosxSupport.isAquaTk():
+ # There are some screwed up <2> class bindings for text
+ # widgets defined in Tk which we need to do away with.
+ # See issue #24801.
+ root.unbind_class('Text', '<B2>')
+ root.unbind_class('Text', '<B2-Motion>')
+ root.unbind_class('Text', '<<PasteSelection>>')
if enable_edit:
if not (cmd or script):