Tal Einat <[email protected]> added the comment:
Note that _tkinter.TK_VERSION and _tkinter.TK_VERSION are simply "8.6", not
enough to differentiate between patch versions. The best way to get this info
appears to be tk.call("info", "patchlevel").
Specifically I suggest:
TK_VERSION = tuple(map(int, tk.call("info", "patchlevel").split(".")))
...
if (8, 6, 8) <= TK_VERSION < (8, 6, 10):
...
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com