mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-21 04:42:33 +08:00
c5d5c5d1f3
date: 2025-10-24T00:30:59 master commit: 405631baf9685e171a0dd19547cb763f1b163d18
24 lines
590 B
Python
Executable File
24 lines
590 B
Python
Executable File
#!/usr/bin/env python3
|
|
import pyray as rl
|
|
from openpilot.system.ui.lib.application import gui_app
|
|
from openpilot.selfdrive.ui.layouts.main import MainLayout
|
|
from openpilot.selfdrive.ui.ui_state import ui_state
|
|
|
|
|
|
def main():
|
|
# TODO: https://github.com/commaai/agnos-builder/pull/490
|
|
# os.nice(-20)
|
|
|
|
gui_app.init_window("UI")
|
|
main_layout = MainLayout()
|
|
main_layout.set_rect(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
|
|
for showing_dialog in gui_app.render():
|
|
ui_state.update()
|
|
|
|
if not showing_dialog:
|
|
main_layout.render()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|