feat: implement controller interface
This commit is contained in:
23
scripts/recorder.py
Normal file
23
scripts/recorder.py
Normal file
@@ -0,0 +1,23 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user