raylib: base widget class (#35484)

* use some widgets

* consistent name draw -> render

* more

* rest
This commit is contained in:
Shane Smiskol
2025-06-06 19:32:03 -07:00
committed by GitHub
parent a1ee5f5ba8
commit 3ce87d0ac9
29 changed files with 87 additions and 76 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import pyray as rl
from cereal import log
from openpilot.system.hardware import HARDWARE
from openpilot.system.ui.lib.application import gui_app, FontWeight
from openpilot.system.ui.lib.application import gui_app, FontWeight, Widget
from openpilot.system.ui.lib.button import gui_button, ButtonStyle
from openpilot.system.ui.lib.label import gui_label, gui_text_box
from openpilot.system.ui.widgets.network import WifiManagerUI, WifiManagerWrapper
@@ -39,7 +39,7 @@ class SetupState(IntEnum):
DOWNLOAD_FAILED = 6
class Setup:
class Setup(Widget):
def __init__(self):
self.state = SetupState.GETTING_STARTED
self.network_check_thread = None