From d399a504ab14d3bbb5a3a8989132068d279682a9 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Thu, 17 Apr 2025 23:01:37 +0100 Subject: [PATCH] fixes --- system/ui/lib/application.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/ui/lib/application.py b/system/ui/lib/application.py index fd1ad52068..470396bbc7 100644 --- a/system/ui/lib/application.py +++ b/system/ui/lib/application.py @@ -73,7 +73,7 @@ class GuiApplication: for font in self._fonts.values(): rl.unload_font(font) - self._fonts = [] + self._fonts = {} rl.close_window() @@ -90,8 +90,8 @@ class GuiApplication: rl.end_drawing() self._monitor_fps() - def font(self, font_wight: FontWeight=FontWeight.NORMAL): - return self._fonts[font_wight] + def font(self, font_weight: FontWeight=FontWeight.NORMAL): + return self._fonts[font_weight] @property def width(self):