Logo
Explore Help
Register Sign In
mawei/sunnypilot
1
0
Fork 0
You've already forked sunnypilot
mirror of https://github.com/sunnypilot/sunnypilot.git synced 2026-02-20 20:43:54 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
e11869d4c94de26ec3b54aa8623b3f7aaa0ab5bc
sunnypilot/scripts/pyqt_demo.py

15 lines
301 B
Python
Raw Normal View History

PyQt demo app (#21625) * build python helpers lib * call setMainWindow from python * put in helper lib * linter * move to scripts old-commit-hash: 25e4e94691d90f1a4496a2742c63ede108593e15
2021-10-29 12:37:17 +02:00
#!/usr/bin/env python3
Linter: remove pylint (#29611) remove pylint old-commit-hash: 1ee6ed4b16e2ade0dd887c0687243aee769043e5
2023-08-24 16:30:54 -07:00
from PyQt5.QtWidgets import QApplication, QLabel
add openpilot prefix to imports (#29498) * add openpilot prefix to imports * more * more * fix docs * fix linter * bump submodules * fix patched tests * update dynamic imports * debug * Revert "debug" This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b. * fix pm test old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
from openpilot.selfdrive.ui.qt.python_helpers import set_main_window
PyQt demo app (#21625) * build python helpers lib * call setMainWindow from python * put in helper lib * linter * move to scripts old-commit-hash: 25e4e94691d90f1a4496a2742c63ede108593e15
2021-10-29 12:37:17 +02:00
if __name__ == "__main__":
app = QApplication([])
label = QLabel('Hello World!')
# Set full screen and rotate
set_main_window(label)
app.exec_()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 125ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API