diff options
author | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-28 03:47:04 (GMT) |
commit | 57847df4e59015c141e645b47112829cf41b582a (patch) | |
tree | 957c78b3e8217ee5ab75e5ae488c85dc40d7349c /Lib/idlelib/MultiCall.py | |
parent | b693e9fc5bed8c8375e47a2f189931a4faece30f (diff) | |
download | cpython-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/MultiCall.py')
-rw-r--r-- | Lib/idlelib/MultiCall.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index b032a65..fffb820 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -33,7 +33,6 @@ import sys import string import re import Tkinter -from idlelib import macosxSupport # the event type constants, which define the meaning of mc_type MC_KEYPRESS=0; MC_KEYRELEASE=1; MC_BUTTONPRESS=2; MC_BUTTONRELEASE=3; @@ -46,7 +45,7 @@ MC_SHIFT = 1<<0; MC_CONTROL = 1<<2; MC_ALT = 1<<3; MC_META = 1<<5 MC_OPTION = 1<<6; MC_COMMAND = 1<<7 # define the list of modifiers, to be used in complex event types. -if macosxSupport.runningAsOSXApp(): +if sys.platform == "darwin": _modifiers = (("Shift",), ("Control",), ("Option",), ("Command",)) _modifier_masks = (MC_SHIFT, MC_CONTROL, MC_OPTION, MC_COMMAND) else: |