diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-02-12 15:01:44 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-02-12 15:01:44 (GMT) |
commit | 827822ef3f389548ca2ac11b11c5e498f45fe78a (patch) | |
tree | 94532be2aa8126ef966cff4f1f7c0d7d35871b37 /Lib/idlelib/keybindingDialog.py | |
parent | de09acf2984b6699aa7a45c2ea2429c6da5f046e (diff) | |
download | cpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.zip cpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.tar.gz cpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.tar.bz2 |
Fix for issue5194, based on a patch by Ned Deily.
Diffstat (limited to 'Lib/idlelib/keybindingDialog.py')
-rw-r--r-- | Lib/idlelib/keybindingDialog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py index f5d32ef..b99c5e0 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 tkinter.messagebox as tkMessageBox import string +from idlelib import macosxSupport class GetKeysDialog(Toplevel): def __init__(self,parent,title,action,currentKeySequences): @@ -133,7 +134,7 @@ class GetKeysDialog(Toplevel): config-keys.def must use the same ordering. """ import sys - if sys.platform == 'darwin' and sys.argv[0].count('.app'): + if macosxSupport.runningAsOSXApp(): self.modifiers = ['Shift', 'Control', 'Option', 'Command'] else: self.modifiers = ['Control', 'Alt', 'Shift'] |