-
Notifications
You must be signed in to change notification settings - Fork 29
/
EBYT.py
29 lines (22 loc) · 768 Bytes
/
EBYT.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
os.environ['QT_API'] = 'PySide6' # For qasync to know which binding is being used
os.environ['QT_LOGGING_RULES'] = 'qt.pointer.dispatch=false' # Disable pointer logging
import sys
import asyncio
from PySide6.QtWidgets import QApplication
from qasync import QEventLoop
from View import View
import logging
logger = logging.getLogger(__name__)
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
app = QApplication(sys.argv)
loop = QEventLoop(app)
asyncio.set_event_loop(loop)
plot = View()
plot.setWindowTitle("Rolling Plot")
plot.resize(1200, 600)
plot.show()
loop.create_task(plot.main())
loop.run_forever()