diff options
| author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-04 21:35:38 (GMT) |
|---|---|---|
| committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-04 21:35:38 (GMT) |
| commit | de3dfc1635390678895fbfff9caef986357efab7 (patch) | |
| tree | 8c3d8fa116aaa3f7062981c43313bf6a6445c6b2 /Lib/idlelib/MultiCall.py | |
| parent | 5302a3011e06ad87b08855d37a230e45df596325 (diff) | |
| download | cpython-de3dfc1635390678895fbfff9caef986357efab7.zip cpython-de3dfc1635390678895fbfff9caef986357efab7.tar.gz cpython-de3dfc1635390678895fbfff9caef986357efab7.tar.bz2 | |
Merged revisions 70176 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70176 | ronald.oussoren | 2009-03-04 22:35:05 +0100 (Wed, 04 Mar 2009) | 2 lines
Fixes issues 3883 and 5194
........
Diffstat (limited to 'Lib/idlelib/MultiCall.py')
| -rw-r--r-- | Lib/idlelib/MultiCall.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index 51de639..b228f57 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -33,6 +33,7 @@ import sys import string import re import Tkinter +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; @@ -45,7 +46,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 sys.platform == "darwin" and sys.executable.count(".app"): +if macosxSupport.runningAsOSXApp(): _modifiers = (("Shift",), ("Control",), ("Option",), ("Command",)) _modifier_masks = (MC_SHIFT, MC_CONTROL, MC_OPTION, MC_COMMAND) else: |
