Ali Amin-Nejad <[email protected]> added the comment:
@serhiy.storchaka I tried that command, the returned value is not an empty
string, it is an object of type <class '_tkinter.Tcl_Obj'>. However including
that line in my script immediately after creating the `root` object actually
fixes the problem - no more error and the button appears and is responsive.
@ned.deily I am on tkinter 8.6.11. The output from the second command is:
```
/Users/ali/miniconda3/envs/bitfount/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so:
@rpath/libtcl8.6.dylib (compatibility version 8.6.0, current version
8.6.11)
@rpath/libtk8.6.dylib (compatibility version 8.6.0, current version
8.6.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)
```
I have just tried the same script in a separate python 3.9 environment with
python 3.9.6 and tkinter 8.6.10 and the error is not there so it seems like it
is introduced in 8.6.11. Happy to try on 8.6.12 but I'm not sure how to upgrade
to it.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45957>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com