Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE: Config dialog again deletes custom themes and keysets. #75683

Closed
terryjreedy opened this issue Sep 17, 2017 · 4 comments
Closed

IDLE: Config dialog again deletes custom themes and keysets. #75683

terryjreedy opened this issue Sep 17, 2017 · 4 comments
Assignees
Labels
3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

BPO 31502
Nosy @terryjreedy
PRs
  • bpo-31502: IDLE Configdialog again deletes custom themes and keysets. #3634
  • [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) #3636
  • 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 = 'https://github.com/terryjreedy'
    closed_at = <Date 2017-09-22.18:03:37.523>
    created_at = <Date 2017-09-17.23:11:45.060>
    labels = ['expert-IDLE', 'type-bug', '3.7']
    title = 'IDLE: Config dialog again deletes custom themes and keysets.'
    updated_at = <Date 2017-09-22.18:03:37.522>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2017-09-22.18:03:37.522>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2017-09-22.18:03:37.523>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2017-09-17.23:11:45.060>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31502
    keywords = ['patch']
    message_count = 4.0
    messages = ['302392', '302393', '302396', '302400']
    nosy_count = 1.0
    nosy_names = ['terry.reedy']
    pr_nums = ['3634', '3636']
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31502'
    versions = ['Python 3.6', 'Python 3.7']

    @terryjreedy
    Copy link
    Member Author

    The askyesno messagebox wrappers, added in bpo-31287, returned None, which is interpreted as 'No', instead of the user entry. With 'Yes' not seen, nothing was saved.

    The manual tests, once the problem was understood, is to save a new theme/keyset and click the delete button twice, clicking No the first time and Yes the second time, and see what happens.

    Unit testing the current version of askyesno would be difficult since it calls messagebox.askyesno(), which returns an answer, and there is no obvious way to get a reference to the actual widget, in order to generate simulated key or click events.

    A long term solution might be to add a new subclass to query.Query, after reviewing *it* for ease of testing.

    @terryjreedy terryjreedy added the 3.7 (EOL) end of life label Sep 17, 2017
    @terryjreedy terryjreedy self-assigned this Sep 17, 2017
    @terryjreedy terryjreedy added topic-IDLE type-bug An unexpected behavior, bug, or error labels Sep 17, 2017
    @terryjreedy
    Copy link
    Member Author

    I am not adding a new item because the regression has not been released.

    @terryjreedy
    Copy link
    Member Author

    New changeset 0efc7c6 by Terry Jan Reedy in branch 'master':
    bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (bpo-3634)
    0efc7c6

    @terryjreedy
    Copy link
    Member Author

    New changeset 6b4d8ba by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6':
    [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) (bpo-3636)
    6b4d8ba

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant