mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
* build python helpers lib
* call setMainWindow from python
* put in helper lib
* linter
* move to scripts
old-commit-hash: 25e4e94691
15 lines
342 B
Python
Executable File
15 lines
342 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from PyQt5.QtWidgets import QApplication, QLabel # pylint: disable=no-name-in-module, import-error
|
|
from selfdrive.ui.qt.python_helpers import set_main_window
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = QApplication([])
|
|
label = QLabel('Hello World!')
|
|
|
|
# Set full screen and rotate
|
|
set_main_window(label)
|
|
|
|
app.exec_()
|