mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
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.
This commit is contained in:
parent
8c456f3b57
commit
c73a4a4f51
2 changed files with 9 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue