mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
This patch improves the L&F of IDLE on OSX. The changes are conditionalized on
being in an IDLE.app bundle on darwin. This does a slight reorganisation of the menus and adds support for file-open events.
This commit is contained in:
parent
6aaccc6b55
commit
19302d927e
8 changed files with 130 additions and 20 deletions
|
@ -133,7 +133,7 @@ class GetKeysDialog(Toplevel):
|
|||
config-keys.def must use the same ordering.
|
||||
"""
|
||||
import sys
|
||||
if sys.platform == 'darwin' and sys.executable.count('.app'):
|
||||
if sys.platform == 'darwin' and sys.argv[0].count('.app'):
|
||||
self.modifiers = ['Shift', 'Control', 'Option', 'Command']
|
||||
else:
|
||||
self.modifiers = ['Control', 'Alt', 'Shift']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue