diff options
-rw-r--r-- | Lib/lib-tk/tkSimpleDialog.py | 7 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py index 4d11ce0..02ea034 100644 --- a/Lib/lib-tk/tkSimpleDialog.py +++ b/Lib/lib-tk/tkSimpleDialog.py @@ -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. |