diff Lib/idlelib/keybindingDialog.py @ 51552:7fa8b7a2f50a 3.0

Backport of r69532
author Ronald Oussoren <ronaldoussoren@mac.com>
date Thu, 12 Feb 2009 15:03:19 +0000
parents ef4cca2d6171
children d31be8c9c8a2
line wrap: on
line diff
--- a/Lib/idlelib/keybindingDialog.py	Wed Feb 11 17:05:35 2009 +0000
+++ b/Lib/idlelib/keybindingDialog.py	Thu Feb 12 15:03:19 2009 +0000
@@ -4,6 +4,7 @@
 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 @@
         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']