-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (21 loc) · 855 Bytes
/
main.py
File metadata and controls
27 lines (21 loc) · 855 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
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QTabWidget
from gui.tab_dicom import DICOMLoaderTab
from gui.tab_diffusion import DiffusionViewerTab
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("DICOM & Difüzyon Arayüzü")
self.setGeometry(100, 100, 1600, 1000)
self.tabs = QTabWidget()
self.setCentralWidget(self.tabs)
# Sekmeleri oluştur
self.tab2 = DiffusionViewerTab()
self.tab1 = DICOMLoaderTab(parent=self) # Ana pencere referansı veriyoruz
self.tabs.addTab(self.tab1, "DICOM Yükle")
self.tabs.addTab(self.tab2, "Difüzyon İncele")
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())