Skip to content

Accept lists in Tkinter #65724

Closed
Closed

Description

@serhiy-storchaka
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']

    Activity

    1. serhiy-storchaka commented on May 18, 2014

      @serhiy-storchaka
      MemberAuthor

      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.

    2. terryjreedy commented on May 18, 2014

      @terryjreedy
      Member

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

    3. python-dev commented on May 21, 2014

      python-devmannequin
      Mannequin

      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

    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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions