You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Patch to make IDLE window rise to top in OS X on launch #59064
bpo-11571: Turtle window pops under the terminal on OSX
Files
osx_raise_idle.patch: Patch against 2.7 to make IDLE grab focus on launch in OS X
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-05-19.17:01:02.717>created_at=<Date2012-05-19.16:45:09.048>labels= ['expert-IDLE', 'type-feature']
title='Patch to make IDLE window rise to top in OS X on launch'updated_at=<Date2012-05-19.17:01:02.715>user='https://github.com/msabramo'
On OS X 10.6.8, when I execute "idle", I see nothing in the Terminal and the IDLE GUI launches but is not visible until I Command-Tab to the "Python" application. I stumbled upon a solution to this problem using OS X's built-in /usr/bin/osascript utility. Attaching a patch...
I created the patch against the 2.7 branch of hg, but I just tried it with both the 3.2 branch of hg and an installed version of 3.2 and it worked great.
Activity
msabramo commentedon May 19, 2012
On OS X 10.6.8, when I execute "idle", I see nothing in the Terminal and the IDLE GUI launches but is not visible until I Command-Tab to the "Python" application. I stumbled upon a solution to this problem using OS X's built-in /usr/bin/osascript utility. Attaching a patch...
msabramo commentedon May 19, 2012
I created the patch against the 2.7 branch of hg, but I just tried it with both the 3.2 branch of hg and an installed version of 3.2 and it worked great.
[last: 0] marca@scml-marca:~/dev/hg-repos/cpython$ pushd /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/ > /dev/null
[last: 0] marca@scml-marca:/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib$ patch -p3 < osx_raise_idle.patch
patching file PyShell.py
Hunk #1 succeeded at 1433 (offset -25 lines).
ned-deily commentedon May 19, 2012
This is really a duplicate of bpo-11571 which gives an easier way to do this directly using Tk calls. I'll see about getting that applied.