Skip to content

Patch to make IDLE window rise to top in OS X on launch #59064

Closed

Description

@msabramo
mannequin
BPO 14859
Nosy @ned-deily, @msabramo
Superseder
  • 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 = None
    closed_at = <Date 2012-05-19.17:01:02.717>
    created_at = <Date 2012-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 = <Date 2012-05-19.17:01:02.715>
    user = 'https://github.com/msabramo'

    bugs.python.org fields:

    activity = <Date 2012-05-19.17:01:02.715>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-05-19.17:01:02.717>
    closer = 'ned.deily'
    components = ['IDLE']
    creation = <Date 2012-05-19.16:45:09.048>
    creator = 'Marc.Abramowitz'
    dependencies = []
    files = ['25639']
    hgrepos = []
    issue_num = 14859
    keywords = ['patch']
    message_count = 3.0
    messages = ['161137', '161138', '161139']
    nosy_count = 2.0
    nosy_names = ['ned.deily', 'Marc.Abramowitz']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '11571'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue14859'
    versions = ['Python 2.7', 'Python 3.2']

    Activity

    1. msabramo commented on May 19, 2012

      msabramomannequin
      MannequinAuthor

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

    2. msabramo commented on May 19, 2012

      msabramomannequin
      MannequinAuthor

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

    3. ned-deily commented on May 19, 2012

      @ned-deily
      Member

      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.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions