From 4902d72ebcee3dde28e4dcd5317482f351ad31b7 Mon Sep 17 00:00:00 2001 From: nickedyer Date: Mon, 20 Feb 2023 00:18:42 -0500 Subject: [PATCH] fixed esc not quitting application --- thermopi/surfaces/dial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thermopi/surfaces/dial.py b/thermopi/surfaces/dial.py index c160171..04cd869 100644 --- a/thermopi/surfaces/dial.py +++ b/thermopi/surfaces/dial.py @@ -78,6 +78,7 @@ class Surface(pygame.Surface): self.quit = True if event.type == pygame.KEYDOWN: if event.key == pygame.K_ESCAPE: + self.running = False self.quit = True if event.type == pygame.MOUSEBUTTONDOWN: self.mouse_handler.active = True