From e395427dfb12252576d306b12ade0235fc0f3c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Tue, 5 Nov 2013 21:32:40 +0100 Subject: [PATCH] simplified cleanup in GIMP plugin --- pysstv/examples/gimp-plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pysstv/examples/gimp-plugin.py b/pysstv/examples/gimp-plugin.py index 5a8cb6e..7962600 100755 --- a/pysstv/examples/gimp-plugin.py +++ b/pysstv/examples/gimp-plugin.py @@ -161,9 +161,8 @@ def transmit_current_image(image, drawable, mode, vox, fskid): Button(buttons, text="Close", command=tm.close).pack(side=LEFT) buttons.pack() root.mainloop() - tm.stop() - tm1750.stop() - cu.stop() + for obj in (tm, tm1750, cu): + obj.stop() finally: os.remove(png_fn)