[New-bugs-announce] [issue45957] _tkinter.TclError: expected boolean value but got ""
Ali Amin-Nejad
report at bugs.python.org
Wed Dec 1 16:54:38 EST 2021
New submission from Ali Amin-Nejad <aanejad at hotmail.co.uk>:
On macOS, the following minimal example:
```
import tkinter as tk
root = tk.Tk()
button = tk.Button(root, text="Exit", command=root.destroy)
button.pack()
root.wm_overrideredirect(True)
root.mainloop()
```
yields the following stack trace:
```
Traceback (most recent call last):
File "blah.py", line 6, in <module>
root.wm_overrideredirect(True)
File "/Users/ali/miniconda3/envs/bitfount/lib/python3.8/tkinter/__init__.py", line 2176, in wm_overrideredirect
return self._getboolean(self.tk.call(
File "/Users/ali/miniconda3/envs/bitfount/lib/python3.8/tkinter/__init__.py", line 1448, in _getboolean
return self.tk.getboolean(string)
_tkinter.TclError: expected boolean value but got ""
```
----------
components: Tkinter, macOS
messages: 407494
nosy: amin-nejad, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: _tkinter.TclError: expected boolean value but got ""
type: crash
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45957>
_______________________________________
More information about the New-bugs-announce
mailing list