You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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").
New changeset 1deea5e by Serhiy Storchaka (Juliette Monsel) in branch 'master': bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) 1deea5e
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
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
Activity
j4321 commentedon 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").
serhiy-storchaka commentedon Oct 8, 2018
Do you mind to create a PR against master for fixing this issue Juliette?
serhiy-storchaka commentedon Oct 18, 2018
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 commentedon Oct 19, 2018
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 commentedon Oct 19, 2018
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 commentedon Oct 21, 2018
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