Files
sunnypilot/scripts/pyqt_demo.py
Willem Melching 0d035f6898 PyQt demo app (#21625)
* build python helpers lib

* call setMainWindow from python

* put in helper lib

* linter

* move to scripts
old-commit-hash: 25e4e94691
2021-10-29 12:37:17 +02:00

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_()