Files
rally-racer/scripts/recorder.py

24 lines
448 B
Python

from PyQt6.QtWidgets import QApplication
from src.recorder import RecorderWindow
def main():
import sys
def except_hook(cls, exception, traceback):
sys.__excepthook__(cls, exception, traceback)
sys.excepthook = except_hook
app = QApplication(sys.argv)
window = RecorderWindow("localhost", 5000)
app.aboutToQuit.connect(window.shutdown)
window.show()
app.exec()
if __name__ == "__main__":
main()