bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window#25187
Conversation
…ogs by window managers on macOS and X Window
| from tkinter import colorchooser | ||
| import tkinter.font as tkfont | ||
| from tkinter import messagebox | ||
| from tkinter.simpledialog import _setup_dialog |
There was a problem hiding this comment.
As explained on the issue, I don't want this dialog changed on mac. I don't know what happens on Linux.
There was a problem hiding this comment.
IDLE dialogs and tkinter simpledialogs fine. However, even after adding the import filedialog does not behave as expected as it does not close when the escape key is pressed (all the others do). I haven't been able to find the reason for the difference between simpledialog and filedialog yet.
Tested on MacOS (my Linux setup handled modal dialogs correctly before this patch)
EDIT:
Also, would it make more sense for _setup_dialog to be in tkinter.dialog instead?
I already added helper There is no "main" dialog file. |
Oops, ignore me! |
|
@serhiy-storchaka: Please replace |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry @serhiy-storchaka, I had trouble checking out the |
…s dialogs by window managers on macOS and X Window (pythonGH-25187). (cherry picked from commit 3bb3fb3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-25588 is a backport of this pull request to the 3.9 branch. |
|
…s dialogs by window managers on macOS and X Window (pythonGH-25187). (pythonGH-25588) (cherry picked from commit 3bb3fb3) (cherry picked from commit 9a16539) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
https://bugs.python.org/issue43655