summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/keybindingDialog.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-03-28 03:47:04 (GMT)
committerNed Deily <nad@acm.org>2014-03-28 03:47:04 (GMT)
commit57847df4e59015c141e645b47112829cf41b582a (patch)
tree957c78b3e8217ee5ab75e5ae488c85dc40d7349c /Lib/idlelib/keybindingDialog.py
parentb693e9fc5bed8c8375e47a2f189931a4faece30f (diff)
downloadcpython-57847df4e59015c141e645b47112829cf41b582a.zip
cpython-57847df4e59015c141e645b47112829cf41b582a.tar.gz
cpython-57847df4e59015c141e645b47112829cf41b582a.tar.bz2
Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
Diffstat (limited to 'Lib/idlelib/keybindingDialog.py')
-rw-r--r--Lib/idlelib/keybindingDialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py
index 5339f88..58d7ed5 100644
--- a/Lib/idlelib/keybindingDialog.py
+++ b/Lib/idlelib/keybindingDialog.py
@@ -4,6 +4,7 @@ Dialog for building Tkinter accelerator key bindings
from Tkinter import *
import tkMessageBox
import string
+import sys
class GetKeysDialog(Toplevel):
def __init__(self,parent,title,action,currentKeySequences):
@@ -132,8 +133,7 @@ class GetKeysDialog(Toplevel):
order is also important: key binding equality depends on it, so
config-keys.def must use the same ordering.
"""
- from idlelib import macosxSupport
- if macosxSupport.runningAsOSXApp():
+ if sys.platform == "darwin":
self.modifiers = ['Shift', 'Control', 'Option', 'Command']
else:
self.modifiers = ['Control', 'Alt', 'Shift']