-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
26 lines (20 loc) · 907 Bytes
/
run.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
import sys
from Src.Images.ImageWidget import ImageOperationsWidget
from PyQt6.QtWidgets import QApplication, QMainWindow, QStyleFactory, QTabWidget
from Src.Media.MediaWidget import MediaOperationsWidget
from Src.Singles.SingleWidget import SingleOperationsWidget
class MainWindow(QMainWindow):
def __init__(self) -> None:
super().__init__()
self.TabView = QTabWidget()
self.TabView.addTab(MediaOperationsWidget(self.TabView), "Media Operations")
self.TabView.addTab(ImageOperationsWidget(self.TabView), "Image Operations")
self.TabView.addTab(SingleOperationsWidget(self.TabView), "Single Operations")
self.setCentralWidget(self.TabView)
self.setWindowTitle("Media GUI")
if __name__ == "__main__":
app = QApplication(sys.argv)
app.setStyle(QStyleFactory.create("Fusion"))
window = MainWindow()
window.show()
app.exec()