diff options
author | Ned Deily <nad@acm.org> | 2014-03-28 03:49:14 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-28 03:49:14 (GMT) |
commit | b7601676b07c7c8e79af9e7818a783b966612c34 (patch) | |
tree | 7a3d48649890a9901747b98df2a9ed13ac13d2db /Lib/idlelib/keybindingDialog.py | |
parent | e7d532fbc9c13e00b1e5c6c0db2dba31d1212de7 (diff) | |
download | cpython-b7601676b07c7c8e79af9e7818a783b966612c34.zip cpython-b7601676b07c7c8e79af9e7818a783b966612c34.tar.gz cpython-b7601676b07c7c8e79af9e7818a783b966612c34.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.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py index 0f0da8c..db88cb4 100644 --- a/Lib/idlelib/keybindingDialog.py +++ b/Lib/idlelib/keybindingDialog.py @@ -4,7 +4,7 @@ Dialog for building Tkinter accelerator key bindings from tkinter import * import tkinter.messagebox as tkMessageBox import string -from idlelib import macosxSupport +import sys class GetKeysDialog(Toplevel): def __init__(self,parent,title,action,currentKeySequences): @@ -133,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. """ - import sys - if macosxSupport.runningAsOSXApp(): + if sys.platform == "darwin": self.modifiers = ['Shift', 'Control', 'Option', 'Command'] else: self.modifiers = ['Control', 'Alt', 'Shift'] |