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): ...@@ -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):
......
...@@ -103,6 +103,9 @@ Extension Modules ...@@ -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.
......
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