Skip to content

IDLE - add an "Interrupt Execution" to shell menu #59513

Closed

Description

@serwy
mannequin
BPO 15308
Nosy @terryjreedy, @serwy, @roseman, @squidsoup
Files
  • issue15308.patch
  • interrupt_execution.patch
  • issue15308_updated.patch: Patch updated for python 3.6.0a4+
  • issue15308_updated-2.patch: trivial edit
  • 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 2017-06-23.03:40:12.926>
    created_at = <Date 2012-07-09.20:24:50.468>
    labels = ['easy', 'expert-IDLE', 'type-feature']
    title = 'IDLE - add an "Interrupt Execution" to shell menu'
    updated_at = <Date 2017-06-23.03:40:12.925>
    user = 'https://github.com/serwy'

    bugs.python.org fields:

    activity = <Date 2017-06-23.03:40:12.925>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-06-23.03:40:12.926>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2012-07-09.20:24:50.468>
    creator = 'roger.serwy'
    dependencies = []
    files = ['26335', '26339', '44581', '44583']
    hgrepos = []
    issue_num = 15308
    keywords = ['patch', 'easy']
    message_count = 8.0
    messages = ['165122', '165136', '165137', '165149', '165150', '275923', '275926', '275968']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'roger.serwy', 'markroseman', 'python-dev', 'Bayard Randel']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue15308'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    Activity

    1. serwy commented on Jul 9, 2012

      serwymannequin
      MannequinAuthor

      Add an "Interrupt Execution" to the Shell menu, per bpo-13504, annoyance #3 - "PROBLEM: There’s no obvious way to stop a running program. (Don’t expect them to know Ctrl-C)"

    2. added
      type-feature
      on Jul 9, 2012
    3. terryjreedy commented on Jul 9, 2012

      @terryjreedy
      Member

      I would like to broaden this to add other missing features to the menus. I have no need for this, but I would like history-next/prev added (to shell, as they only apply there). I never learned them because at first I did not know about them and now it is more bother to select options/configure/keys/scroll-down to find the key binding than to click/return. When I get a new program, I often look through the menus to see what is available, so if things are hidden, how do I find out about them?

      Does IDle or tkinter or tk automatically add the key shortcuts?

      I notice that some key bindings include lower and upper case, some do not. (History next/prev do not.) Is there a reason to not make all cntl/alt bindings case insensitive, and is there an issue for this?

    4. terryjreedy commented on Jul 9, 2012

      @terryjreedy
      Member

      I was thinking about bpo-12387 about caps lock and shortcuts.

    5. serwy commented on Jul 10, 2012

      serwymannequin
      MannequinAuthor

      I'm ok with broadening the scope of this issue to include other items.
      If we decide to deprecate running IDLE without a subprocess
      (http://mail.python.org/pipermail/idle-dev/2012-June/003124.html), then
      the history-next/prev would fit nicely under the Shell menu.

      Does IDle or tkinter or tk automatically add the key shortcuts?
      IDLE adds the key shortcuts. It's broken for extensions if those
      shortcuts are changed. See bpo-6092.

    6. serwy commented on Jul 10, 2012

      serwymannequin
      MannequinAuthor

      The help.txt file needs to be modified as well. See interrupt_execution.patch.

    7. squidsoup commented on Sep 12, 2016

      squidsoupmannequin
      Mannequin

      I've provided a patch which seems to bring this change up to date on Python 3.6.0a4+, however I've only manually tested. Having had a look at the existing idle tests, it wasn't clear to me how I could also provide a test. Any suggestions would be appreciated. I ran a childrens' coding workshop at Kiwi PyCon 2016 in Dunedin, New Zealand using IDLE and one child in fact raised this issue and was unfamiliar with Ctrl-C.

    8. squidsoup commented on Sep 12, 2016

      squidsoupmannequin
      Mannequin

      Updated description in idle.rst with a fullstop.

    9. python-dev commented on Sep 12, 2016

      python-devmannequin
      Mannequin

      New changeset 9148a2213631 by Terry Jan Reedy in branch '2.7':
      Issue bpo-15308: Add 'interrupt execution' (^C) to Shell menu.
      https://hg.python.org/cpython/rev/9148a2213631

      New changeset 74b84014bc27 by Terry Jan Reedy in branch '3.5':
      Issue bpo-15308: Add 'interrupt execution' (^C) to Shell menu.
      https://hg.python.org/cpython/rev/74b84014bc27

      New changeset 63f6ac38d18d by Terry Jan Reedy in branch 'default':
      Merge 3.5 - Issue bpo-15308: Add 'interrupt execution' (^C) to Shell menu.
      https://hg.python.org/cpython/rev/63f6ac38d18d

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

      easytopic-IDLEtype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions