Commits

Miki Tebeka  committed 52de22b

Catch close button as well

  • Participants
  • Parent commits f21e26f
  • Tags version-0.3.3

Comments (0)

Files changed (1)

         root.title("TLL")
         root.option_add("*font", "Courier -40 bold")
         root.bind("<Escape>", lambda e: self.quit())
+        root.protocol("WM_DELETE_WINDOW", self.quit)
         self.command = cmd = tk.Entry(root, width=20)
         cmd.pack(fill=tk.BOTH)
         cmd.bind("<Return>", self.on_enter)