diff --git a/showqr.py b/showqr.py index 2a20312..31c1d54 100644 --- a/showqr.py +++ b/showqr.py @@ -28,6 +28,7 @@ def showqr_argparse(args): root.title("QR code") root.bind('', lambda *args, **kwargs: root.quit()) root.bind('', lambda *args, **kwargs: save_image(root, image)) + root.bind('', lambda *args, **kwargs: root.quit()) tk_image = PIL.ImageTk.PhotoImage(image) tkinter.Label(root, image=tk_image).grid(row=0, column=0)