-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
34 lines (24 loc) · 814 Bytes
/
main.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
30
31
32
33
34
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QGridLayout
import logging
from panels.video_show_panel import VideoShowPanel
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
datefmt="%S",
)
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setWindowTitle("My App")
layout = QGridLayout()
self.video_show_panel = VideoShowPanel()
layout.addWidget(self.video_show_panel, 1, 0, 3, 3)
widget = QWidget()
widget.setLayout(layout)
self.setCentralWidget(widget)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec()