[New-bugs-announce] [issue34936] tkinter.Spinbox.selection_element() raises TclError

Juliette Monsel report at bugs.python.org
Mon Oct 8 11:56:55 EDT 2018


New submission from Juliette Monsel <j_4321 at protonmail.com>:

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

----------
components: Tkinter
messages: 327359
nosy: j-4321-i
priority: normal
severity: normal
status: open
title: tkinter.Spinbox.selection_element() raises TclError
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34936>
_______________________________________


More information about the New-bugs-announce mailing list