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, ...).
|