mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (#25187)
This commit is contained in:
parent
8cc3cfa8af
commit
3bb3fb3be0
7 changed files with 25 additions and 7 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue