[Patches] [ python-Patches-1491759 ] IDLE L&F on MacOSX

SourceForge.net noreply at sourceforge.net
Tue Jun 6 08:21:12 CEST 2006


Patches item #1491759, was opened at 2006-05-19 19:39
Message generated for change (Comment added) made by ronaldoussoren
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1491759&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Kurt B. Kaiser (kbk)
Summary: IDLE L&F on MacOSX 

Initial Comment:
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, ...).

----------------------------------------------------------------------

>Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2006-06-06 08:21

Message:
Logged In: YES 
user_id=580910

Actually upload the new patch. 

----------------------------------------------------------------------

Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2006-06-05 22:12

Message:
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.

----------------------------------------------------------------------

Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2006-05-26 14:28

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1491759&group_id=5470


More information about the Patches mailing list