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

2021-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Or use python.org installer ;-). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-12-06 Thread Ned Deily
Ned Deily added the comment: > How does one go about upgrading their tkinter version? Since, based on your path names, you appear to be using a Python from miniconda, you should check with that project. Perhaps they have a newer version available. Good luck! -- resolution: -> out

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

2021-12-06 Thread Ali Amin-Nejad
Ali Amin-Nejad added the comment: It seems like it must be a mac-specific issue just on 8.6.11 then if ned couldn't reproduce on 8.6.12. How does one go about upgrading their tkinter version? Thanks -- ___ Python tracker

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

2021-12-06 Thread E. Paine
E. Paine added the comment: I cannot reproduce on Ubuntu 21.10 (Tk 8.6.11), so I believe we can close this issue. -- type: behavior -> crash ___ Python tracker ___

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

2021-12-03 Thread E. Paine
E. Paine added the comment: > Do we still use Tk 8.6.11 on any platform with Python 3.9+ No, none of the python.org installers include it now. On Linux, according to https://pkgs.org/download/tk, several distros still use 8.6.11 (most notably Ubuntu 21.04). I'll see if I can reproduce it on

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

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks like a bug in Tk 8.6.11. It is expected that the implementation of "wm overrideredirect" returns an empty string if pass the boolean argument. The returned value is an empty string, but its type is not cleared. Seems it keeps the type of previous

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

2021-12-02 Thread Ali Amin-Nejad
Ali Amin-Nejad added the comment: Thanks Serhiy, the output is: ['StateSpec'] [''] -- ___ Python tracker ___ ___ Python-bugs-list

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

2021-12-02 Thread Serhiy Storchaka
Serhiy Storchaka 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])

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

2021-12-02 Thread Ali Amin-Nejad
Ali Amin-Nejad added the comment: @serhiy.storchaka I tried that command, the returned value is not an empty string, it is an object of type . However including that line in my script immediately after creating the `root` object actually fixes the problem - no more error and the button

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

2021-12-02 Thread Ned Deily
Ned Deily added the comment: I am not able to reproduce this failure with various macOS Pythons from python.org that are built with either Tk 8.6.8 or 8.6.12. Perhaps it's an issue with the Tk provided with your Miniconda Python? Besides answering Serhiy's question, it would be helpful to

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

2021-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the result of root.tk.call('wm', 'overrideredirect', root._w, True) ? Is it not an empty string? -- nosy: +serhiy.storchaka ___ Python tracker

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

2021-12-01 Thread Ali Amin-Nejad
New submission from Ali Amin-Nejad : 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