From 11f16e047809e3edb8de01a8966c70d02399f015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicholas=20St=C4=83nescu?= Date: Fri, 28 Nov 2025 11:07:38 +0100 Subject: [PATCH] More ui, now beacons work on spacebar. --- student_code/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/student_code/ui.py b/student_code/ui.py index 7f3814f..0add4d9 100644 --- a/student_code/ui.py +++ b/student_code/ui.py @@ -115,6 +115,9 @@ if __name__ == "__main__": #last_key = key except AttributeError: key_queue.put(str(key)) + if str(key) == "Key.space": + car.toggle_beacon() + beacon_label.config(text=f"Beacon {car.get_beacon_state()}") def on_release(key): # Stop listener if ESC is pressed