Commit e350c840 authored by Martin v. Löwis's avatar Martin v. Löwis

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

if an exception occurs.
parent ce9212f0
......@@ -129,9 +129,10 @@ class Dialog(Toplevel):
self.withdraw()
self.update_idletasks()
self.apply()
self.cancel()
try:
self.apply()
finally:
self.cancel()
def cancel(self, event=None):
......
......@@ -103,6 +103,9 @@ Extension Modules
Library
-------
- Patch #1594554: Always close a tkSimpleDialog on ok(), even
if an exception occurs.
- Patch #1538878: Don't make tkSimpleDialog dialogs transient if
the parent window is withdrawn.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment