mirror of https://github.com/python/cpython
Patch #1594554: Always close a tkSimpleDialog on ok(), even
if an exception occurs.
This commit is contained in:
parent
ce9212f018
commit
e350c840b3
|
@ -129,8 +129,9 @@ class Dialog(Toplevel):
|
||||||
self.withdraw()
|
self.withdraw()
|
||||||
self.update_idletasks()
|
self.update_idletasks()
|
||||||
|
|
||||||
|
try:
|
||||||
self.apply()
|
self.apply()
|
||||||
|
finally:
|
||||||
self.cancel()
|
self.cancel()
|
||||||
|
|
||||||
def cancel(self, event=None):
|
def cancel(self, event=None):
|
||||||
|
|
|
@ -103,6 +103,9 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Patch #1594554: Always close a tkSimpleDialog on ok(), even
|
||||||
|
if an exception occurs.
|
||||||
|
|
||||||
- Patch #1538878: Don't make tkSimpleDialog dialogs transient if
|
- Patch #1538878: Don't make tkSimpleDialog dialogs transient if
|
||||||
the parent window is withdrawn.
|
the parent window is withdrawn.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue