Patch #1538878: Don't make tkSimpleDialog dialogs transient if
the parent window is withdrawn. This mirrors what dialog.tcl does.
This commit is contained in:
parent
830358af09
commit
ce9212f018
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue