Bryan Oakley added the comment:
yes, this is a well known backwards incompatibility. In python 2, the
division operator returns an integer if both operands are integers. In
python 3 it returns a float.
https://www.python.org/dev/peps/pep-0238/
On Thu, Jul 12, 2018 at 8:48 AM STINNER Victor
New submission from Bryan Oakley :
Even though the underlying tcl/tk interpreter is returning ints, askcolor is
converting the values to floats. My guess is this is an oversight related to
the change in functionality of the / operator in python3.
this:
return (r/256, g/256, b/256), str
Changes by Bryan Oakley :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue25684>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Bryan Oakley:
Original issue was brought to my attention by this SO question:
http://stackoverflow.com/questions/33831289/ttk-optionmenu-displaying-check-mark-on-all-menus
The ttk.OptionMenu uses radiobuttons for the dropdown menu. However, because it
doesn't se
Bryan Oakley added the comment:
I gave myself an hour or so to play around with this, and the crux of the
matter seems to be in the function `_format_optdict()` which converts a
dictionary of options and values into something suitable to pass to
`tk.call()`. However, I think the same bug is
Bryan Oakley added the comment:
What behavior do I expect? I expect it to not throw an error. I expect whatever
string I give to be inserted into the widget unadulterated (ie: if I give the
string "foo {" I expect to see "foo {" in the widget).
Tkinter is effectively te
New submission from Bryan Oakley:
If you try to insert an item into the treeview, give it a tuple of values for
the "values" attribute, and one of those values has unbalanced braces, you'll
get an error "unmatched open brace in list"
To reproduce:
import Tkint