From b7601676b07c7c8e79af9e7818a783b966612c34 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 27 Mar 2014 20:49:14 -0700 Subject: Issue #17654: Ensure IDLE menus are customized properly on OS X for non-framework builds and for all variants of Tk. --- Lib/idlelib/keybindingDialog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/idlelib/keybindingDialog.py') diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py index 0f0da8c7e93..db88cb4365e 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'] -- cgit v1.2.3