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, ...).
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.
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, now zooms windows as the menu suggests, but also still inserts the TM character (which is the default binding for 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.