-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
28 lines (20 loc) · 872 Bytes
/
Copy pathrun.py
File metadata and controls
28 lines (20 loc) · 872 Bytes
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
import sys
from PyQt6.QtWidgets import QApplication, QMainWindow, QStyleFactory, QTabWidget
from tendo import singleton
from Src.Widgets import ImageWidget, MediaWidget, SingleWidget
INSTANCE = singleton.SingleInstance()
class MainWindow(QMainWindow):
def __init__(self) -> None:
super().__init__()
self.TabView = QTabWidget()
self.TabView.addTab(ImageWidget.ImageWidget(self.TabView), "Image Operations")
self.TabView.addTab(MediaWidget.MediaWidget(self.TabView), "Media Operations")
self.TabView.addTab(SingleWidget.SingleWidget(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()