From 80c390653fae2b558822ecf5f249691422203d3d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 29 Oct 2023 12:13:29 -0700 Subject: [PATCH] Bind ctrl+w to quit. --- showqr.py | 1 + 1 file changed, 1 insertion(+) 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)