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

tkinter.Spinbox.selection_element() raises TclError #79117

Closed
j4321 mannequin opened this issue Oct 8, 2018 · 6 comments
Closed

tkinter.Spinbox.selection_element() raises TclError #79117

j4321 mannequin opened this issue Oct 8, 2018 · 6 comments
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@j4321
Copy link
Mannequin

j4321 mannequin commented Oct 8, 2018

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']

    @j4321
    Copy link
    Mannequin Author

    j4321 mannequin commented Oct 8, 2018

    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").

    @j4321 j4321 mannequin added 3.7 (EOL) end of life topic-tkinter type-bug An unexpected behavior, bug, or error labels Oct 8, 2018
    @serhiy-storchaka serhiy-storchaka added the 3.8 (EOL) end of life label Oct 8, 2018
    @serhiy-storchaka
    Copy link
    Member

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

    @serhiy-storchaka
    Copy link
    Member

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

    @serhiy-storchaka
    Copy link
    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

    @miss-islington
    Copy link
    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

    @serhiy-storchaka
    Copy link
    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

    @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 3.8 (EOL) end of life topic-tkinter type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants