diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-04-25 13:07:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 13:07:58 +0300 |
commit | 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c (patch) | |
tree | 683c7ba6c3fd9fe0899fba5254fb7a6b6193386a /Lib/idlelib/config_key.py | |
parent | 8cc3cfa8afab1651c4f6e9ba43a7ab7f10f64c32 (diff) | |
download | cpython-git-3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c.tar.gz |
bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (#25187)
Diffstat (limited to 'Lib/idlelib/config_key.py')
-rw-r--r-- | Lib/idlelib/config_key.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/config_key.py b/Lib/idlelib/config_key.py index 7510aa9f3d..9ca3a156f4 100644 --- a/Lib/idlelib/config_key.py +++ b/Lib/idlelib/config_key.py @@ -4,6 +4,7 @@ Dialog for building Tkinter accelerator key bindings from tkinter import Toplevel, Listbox, StringVar, TclError from tkinter.ttk import Frame, Button, Checkbutton, Entry, Label, Scrollbar from tkinter import messagebox +from tkinter.simpledialog import _setup_dialog import string import sys @@ -63,6 +64,7 @@ class GetKeysDialog(Toplevel): self.resizable(height=False, width=False) self.title(title) self.transient(parent) + _setup_dialog(self) self.grab_set() self.protocol("WM_DELETE_WINDOW", self.cancel) self.parent = parent |