ui(raylib): fix typos

- font_wight -> font_weight
- _fonts is a dict
pull/35030/head
Cameron Clough 1 week ago
parent a4cdc96a99
commit 5476c8f4fa
  1. 6
      system/ui/lib/application.py

@ -73,7 +73,7 @@ class GuiApplication:
for font in self._fonts.values(): for font in self._fonts.values():
rl.unload_font(font) rl.unload_font(font)
self._fonts = [] self._fonts = {}
rl.close_window() rl.close_window()
@ -90,8 +90,8 @@ class GuiApplication:
rl.end_drawing() rl.end_drawing()
self._monitor_fps() self._monitor_fps()
def font(self, font_wight: FontWeight=FontWeight.NORMAL): def font(self, font_weight: FontWeight=FontWeight.NORMAL):
return self._fonts[font_wight] return self._fonts[font_weight]
@property @property
def width(self): def width(self):

Loading…
Cancel
Save