This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE L&F on MacOSX
Type: Stage:
Components: IDLE Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: ronaldoussoren
Priority: normal Keywords: patch

Created on 2006-05-19 17:39 by ronaldoussoren, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python25-idle-macosx.patch ronaldoussoren, 2006-05-19 17:39
python25-idle-macosx-2.patch ronaldoussoren, 2006-06-06 06:21
Messages (5)
msg50287 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-05-19 17:39
The attached patch fixes some L&F issues on MacOSX:

- IDLE now reacts to file-open AppleEvents, which means that if a user 
associates IDLE.app with .py files IDLE will open .py files when the user 
double-clicks on them

- Hide the tcl/tk console window that gets opened by default when IDLE is 
in an application bundle (that's a misfeature of aquatk)

- Patch the menu's to make sure they better conform to the HIG.

- PyShell/EditorWindow  status_bar no longer overlaps with the resize 
widget in the lower-left corner of the window

Open issues:

- When you double-click on a file and IDLE is not yet open the file will be 
opened, but IDLE will open the default shell window just above it :-(

- I'm not terribly happy with the code changes that implement the 
updated menu structure.

- The default keybindings on OSX are the windows keybindings. I haven't 
checked yet if that can be fixed programmaticly, I also haven't verified if 
the macos keybindings are fully correct for OSX.

- The general L&F is still wrong, but that isn't really IDLE's fault: tcl/tk 
doesn't fully conform to the HIG yet (dialogs without title bars, wrong 
default dinwos background, wrong widget for tabbed windows, ...).
msg50288 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-05-26 12:28
Logged In: YES 
user_id=580910

I've currently worked around the default keybindings issue by copying a mac-
specific copy of config-main.def into the library directory when doing a 
framework install of python. That's obviously not a good solution, but I wouldn't 
know how to do it better.
msg50289 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-06-05 20:12
Logged In: YES 
user_id=580910

I've updated the patch slightly:
- ZoomHeight placed the top of the window behind the menubar

- Keybindings that use the Alt don't work with AquaTk, automaticly replace 
those by bindings that use the Option key (which is basically the same key on 
OSX). This is needed because not all key-bindings are part of config-
keys.def, some are in config-extensions.def.

The annoying bit is that this doesn't actually solve the entire problem, 
<Option-2> now zooms windows as the menu suggests, but also still inserts 
the TM character (which is the default binding for <option-2> in OSX text 
views).

- Rename the Windows menu to Window (singular) to be more consistent with 
OSX naming of menus.


I haven't found a nice way to override the default keybindings yet. I'm very 
tempted to patch the various configfiles when running a framework-install.
msg50290 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-06-06 06:21
Logged In: YES 
user_id=580910

Actually upload the new patch. 
msg50291 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-06 08:44
Logged In: YES 
user_id=580910

This patch was applied before 2.5b1 came out, closing.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43381
2006-05-19 17:39:43ronaldoussorencreate