[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
New submission from Prudent : I am writing codes for opening file dialog to select a file by clicking a button. The function I used was "askopenfilename()" in tkinter.filedialog module. However, a warning displayed when I ran the code. And, the file filter option was also disabled after one click. The displayed warning was below. -- components: macOS files: warning.png messages: 375601 nosy: Prudent, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication. type: behavior versions: Python 3.8 Added file: https://bugs.python.org/file49403/warning.png ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: The versions of Python, Tcl/Tk and MacOS I used are 3.8.5, 8.5.9 and the newest Catalina 10.15.6, respectively. Your words give me a hint about the version of Tcl/Tk. So I checked it. The version I used seems too old, the newest version for it is 8.6. In my thoughts, I always thought those embedded packages could be automatically upgraded after I re-installed a newer python. However, it seems the packages are not be updated as expected. -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: Yes, you are right. Just now, I re-installed Python3.8.5. But when I opened my .py file with tkinter and ran it, it still linked to the old Tcl/Tk(8.5.9) in Python3.7.5. However, when I ran the command "python3 -m tkinter" to check its version. It showed me the new version 8.6. My understanding is that when a newer python is installed, the old files are not replaced. Both of them are kept in computer. Is it right? So, I should manually remove those old files, right? -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: Sorry, I forget how I installed the old python 3.7.5, but I installed the new python 3.8.5 using the downloaded installer from Python.org. Besides, I checked the "Tcl" under the path: "/System/Library/Tcl", its version still is 8.5. I think my code used the library here, and this is the reason why the warning showed. -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: Sorry, maybe I missed to share a critical point that I wrote Python codes using “VS Code” software, rather than IDEL. That warning only showed in VS Code software when I ran it. After I re-opened my code in IDEL and ran it again. No any warnings or errors existed at all. -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: It is also very weird to me. I checked the python version used in VS code, the version in use was 3.8. But it seems the used Tcl/Tk package still linked to the system-embedded Tck/Tk 8.5.9 on macOS. I found this description from "https://www.python.org/download/mac/tcltk/";, which may help us know more. Anyway, this warning doesn't affect running codes too much. -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.
Prudent added the comment: Yes, I agree with you. -- ___ Python tracker <https://bugs.python.org/issue41574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com