Skip to content

tkinter.Spinbox.selection_element() raises TclError #79117

Closed

Description

@j4321
mannequin
BPO 34936
Nosy @serhiy-storchaka, @j4321, @miss-islington
PRs
  • bpo-34936: Fix TclError in tkinter.Spinbox.selection_element() #9760
  • [3.7] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element() (GH-9760) #9957
  • [3.6] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957) #9967
  • [2.7] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957) #9968
  • 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 2018-10-21.07:10:47.489>
    created_at = <Date 2018-10-08.15:56:55.209>
    labels = ['3.7', '3.8', 'type-bug', 'expert-tkinter']
    title = 'tkinter.Spinbox.selection_element() raises TclError'
    updated_at = <Date 2018-10-21.07:10:47.488>
    user = 'https://github.com/j4321'

    bugs.python.org fields:

    activity = <Date 2018-10-21.07:10:47.488>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-21.07:10:47.489>
    closer = 'serhiy.storchaka'
    components = ['Tkinter']
    creation = <Date 2018-10-08.15:56:55.209>
    creator = 'j-4321-i'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34936
    keywords = ['patch']
    message_count = 6.0
    messages = ['327359', '327365', '327998', '328047', '328049', '328193']
    nosy_count = 3.0
    nosy_names = ['serhiy.storchaka', 'j-4321-i', 'miss-islington']
    pr_nums = ['9760', '9957', '9967', '9968']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34936'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. j4321 commented on Oct 8, 2018

      j4321mannequin
      MannequinAuthor

      Spinbox.selection_element() raises TclError: expected integer but got "none" while it should return the currently selected element according to the docstring.

      I think this issue comes from the Spinbox.selection method which tries to convert to int the output of self.tk.call((self._w, 'selection', 'element')) while it returns a string ("none", "buttonup" or "buttondown").

    2. added
      3.7 (EOL)
      type-bug
      on Oct 8, 2018
    3. serhiy-storchaka commented on Oct 8, 2018

      @serhiy-storchaka
      Member

      Do you mind to create a PR against master for fixing this issue Juliette?

    4. serhiy-storchaka commented on Oct 18, 2018

      @serhiy-storchaka
      Member

      New changeset 1deea5e by Serhiy Storchaka (Juliette Monsel) in branch 'master':
      bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760)
      1deea5e

    5. serhiy-storchaka commented on Oct 19, 2018

      @serhiy-storchaka
      Member

      New changeset bd9c2ce by Serhiy Storchaka (Juliette Monsel) in branch '3.7':
      bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957)
      bd9c2ce

    6. miss-islington commented on Oct 19, 2018

      @miss-islington
      Contributor

      New changeset c04347f by Miss Islington (bot) in branch '3.6':
      bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957)
      c04347f

    7. serhiy-storchaka commented on Oct 21, 2018

      @serhiy-storchaka
      Member

      New changeset 427b8c7 by Serhiy Storchaka in branch '2.7':
      [2.7] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957) (GH-9968)
      427b8c7

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

      3.7 (EOL)3.8 (EOL)topic-tkintertype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions