We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4852e0a commit d1fe4a2Copy full SHA for d1fe4a2
AnimatedGif.py
@@ -4,6 +4,7 @@
4
Released under the terms of the MIT license (https://opensource.org/licenses/MIT) as described in LICENSE.md
5
6
"""
7
+import sys
8
import time
9
try:
10
import Tkinter as tk # for Python2
@@ -69,3 +70,5 @@ def _animate_thread(self):
69
70
self._num += 1
71
except tk.TclError: # When we try a frame that doesn't exist, we know we have to start over from zero
72
self._num = 0
73
+ except RuntimeError:
74
+ sys.exit()
0 commit comments