[issue45957] _tkinter.TclError: expected boolean value but got ""

Serhiy Storchaka report at bugs.python.org
Thu Dec 2 17:40:18 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Thank you Ali. It confirms my guess, but it is still not clear why we get a Tcl_Obj rather of None or empty string.

Please examine what is the output of the following code:

res = root.tk.call('wm', 'overrideredirect', root._w, True)
print([res.typename])
print([res.string])

If the first print crashes comment out it.

----------

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


More information about the Python-bugs-list mailing list