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

Accept lists in Tkinter #65724

Closed
serhiy-storchaka opened this issue May 18, 2014 · 3 comments
Closed

Accept lists in Tkinter #65724

serhiy-storchaka opened this issue May 18, 2014 · 3 comments
Assignees
Labels
topic-tkinter type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 21525
Nosy @loewis, @terryjreedy, @serhiy-storchaka
Files
  • tkinter_accept_lists.patch
  • 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/serhiy-storchaka'
    closed_at = <Date 2014-05-21.14:21:46.656>
    created_at = <Date 2014-05-18.16:04:31.873>
    labels = ['type-feature', 'expert-tkinter']
    title = 'Accept lists in Tkinter'
    updated_at = <Date 2014-05-21.14:21:46.655>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-05-21.14:21:46.655>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-05-21.14:21:46.656>
    closer = 'serhiy.storchaka'
    components = ['Tkinter']
    creation = <Date 2014-05-18.16:04:31.873>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['35282']
    hgrepos = []
    issue_num = 21525
    keywords = ['patch']
    message_count = 3.0
    messages = ['218747', '218768', '218875']
    nosy_count = 5.0
    nosy_names = ['loewis', 'terry.reedy', 'gpolo', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21525'
    versions = ['Python 3.5']

    @serhiy-storchaka
    Copy link
    Member Author

    There is very common error when user pass list instead tuple to Tkinter. Some functions accept both tuple and list, some functions reject list, but many functions silently convert non-tuple value to str (e.g. [1, 2] -> '[1, 2]' instead of expected Tcl representation '{1 2}'). The proposed patch adds support of Python lists in all Tkinter functions which accept tuples.

    @serhiy-storchaka serhiy-storchaka self-assigned this May 18, 2014
    @serhiy-storchaka serhiy-storchaka added topic-tkinter type-feature A feature request or enhancement labels May 18, 2014
    @terryjreedy
    Copy link
    Member

    Sounds like a good idea to me. The code looks pretty straightforward as far as I understood it.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented May 21, 2014

    New changeset 8676e436c0f0 by Serhiy Storchaka in branch 'default':
    Issue bpo-21525: Most Tkinter methods which accepted tuples now accept lists too.
    http://hg.python.org/cpython/rev/8676e436c0f0

    @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
    topic-tkinter type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants