diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-04-25 10:07:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 10:07:58 (GMT) |
commit | 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c (patch) | |
tree | 683c7ba6c3fd9fe0899fba5254fb7a6b6193386a /Lib/idlelib/searchbase.py | |
parent | 8cc3cfa8afab1651c4f6e9ba43a7ab7f10f64c32 (diff) | |
download | cpython-3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c.zip cpython-3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c.tar.gz cpython-3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c.tar.bz2 |
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/searchbase.py')
-rw-r--r-- | Lib/idlelib/searchbase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/searchbase.py b/Lib/idlelib/searchbase.py index fbef87a..64ed50c 100644 --- a/Lib/idlelib/searchbase.py +++ b/Lib/idlelib/searchbase.py @@ -2,6 +2,7 @@ from tkinter import Toplevel from tkinter.ttk import Frame, Entry, Label, Button, Checkbutton, Radiobutton +from tkinter.simpledialog import _setup_dialog class SearchDialogBase: @@ -83,6 +84,7 @@ class SearchDialogBase: top.protocol("WM_DELETE_WINDOW", self.close) top.wm_title(self.title) top.wm_iconname(self.icon) + _setup_dialog(top) self.top = top self.frame = Frame(top, padding="5px") self.frame.grid(sticky="nwes") |