summaryrefslogtreecommitdiff
path: root/Lib/tkinter/filedialog.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-04-25 13:07:58 +0300
committerGitHub <noreply@github.com>2021-04-25 13:07:58 +0300
commit3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c (patch)
tree683c7ba6c3fd9fe0899fba5254fb7a6b6193386a /Lib/tkinter/filedialog.py
parent8cc3cfa8afab1651c4f6e9ba43a7ab7f10f64c32 (diff)
downloadcpython-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/tkinter/filedialog.py')
-rw-r--r--Lib/tkinter/filedialog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tkinter/filedialog.py b/Lib/tkinter/filedialog.py
index 3ed93eb8c1..600d0bd49f 100644
--- a/Lib/tkinter/filedialog.py
+++ b/Lib/tkinter/filedialog.py
@@ -24,6 +24,7 @@ from tkinter import (
)
from tkinter.dialog import Dialog
from tkinter import commondialog
+from tkinter.simpledialog import _setup_dialog
dialogstates = {}
@@ -62,6 +63,7 @@ class FileDialog:
self.top = Toplevel(master)
self.top.title(title)
self.top.iconname(title)
+ _setup_dialog(self.top)
self.botframe = Frame(self.top)
self.botframe.pack(side=BOTTOM, fill=X)