Commit c73a4a4f authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1538878: Don't make tkSimpleDialog dialogs transient if

the parent window is withdrawn. This mirrors what dialog.tcl
does.
Will backport to 2.5.
parent 8c456f3b
......@@ -46,8 +46,13 @@ class Dialog(Toplevel):
title -- the dialog title
'''
Toplevel.__init__(self, parent)
self.transient(parent)
# If the master is not viewable, don't
# make the child transient, or else it
# would be opened withdrawn
if parent.winfo_viewable():
self.transient(parent)
if title:
self.title(title)
......
......@@ -98,6 +98,9 @@ Core and builtins
Library
-------
- Patch #1538878: Don't make tkSimpleDialog dialogs transient if
the parent window is withdrawn.
- Bug #1597824: return the registered function from atexit.register()
to facilitate usage as a decorator.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment