Patch #1594554: Always close a tkSimpleDialog on ok(), even

if an exception occurs.
This commit is contained in:
Martin v. Löwis 2006-11-18 18:05:57 +00:00
parent ce9212f018
commit e350c840b3
2 changed files with 7 additions and 3 deletions

View File

@ -129,9 +129,10 @@ class Dialog(Toplevel):
self.withdraw() self.withdraw()
self.update_idletasks() self.update_idletasks()
self.apply() try:
self.apply()
self.cancel() finally:
self.cancel()
def cancel(self, event=None): def cancel(self, event=None):

View File

@ -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.