mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-07 13:52:06 +08:00
100f89a161
* openpilot v0.9.9 release date: 2025-06-05T19:54:08 master commit: 8aadf02b2fd91f4e1285e18c2c7feb32d93b66f5 * AGNOS 12.4 (#35558) agnos12.4 --------- Co-authored-by: Vehicle Researcher <user@comma.ai> Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
22 lines
741 B
Python
22 lines
741 B
Python
from openpilot.system.ui.lib.list_view import ListView, button_item, text_item
|
|
|
|
class SoftwareLayout:
|
|
def __init__(self):
|
|
items = [
|
|
text_item("Current Version", ""),
|
|
button_item("Download", "CHECK", callback=self._on_download_update),
|
|
button_item("Install Update", "INSTALL", callback=self._on_install_update),
|
|
button_item("Target Branch", "SELECT", callback=self._on_select_branch),
|
|
button_item("Uninstall", "UNINSTALL", callback=self._on_uninstall),
|
|
]
|
|
|
|
self._list_widget = ListView(items)
|
|
|
|
def render(self, rect):
|
|
self._list_widget.render(rect)
|
|
|
|
def _on_download_update(self): pass
|
|
def _on_install_update(self): pass
|
|
def _on_select_branch(self): pass
|
|
def _on_uninstall(self): pass
|