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.update_idletasks()
|
||||
|
||||
try:
|
||||
self.apply()
|
||||
|
||||
finally:
|
||||
self.cancel()
|
||||
|
||||
def cancel(self, event=None):
|
||||
|
|
Loading…
Reference in New Issue