-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window #25187
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
Lib/idlelib/configdialog.py
Outdated
@@ -21,6 +21,7 @@ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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