-
Notifications
You must be signed in to change notification settings - Fork 2
/
main_window.py
32 lines (22 loc) · 952 Bytes
/
main_window.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
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QTabWidget, QApplication
from hidden_window import HiddenWindow
from help_window import HelpWindow
class MainWindow(QWidget):
def __init__(self):
super().__init__()
self.init_ui()
def init_ui(self):
layout = QVBoxLayout()
self.tab_widget = QTabWidget(self)
self.window1 = HelpWindow(self)
self.window2 = HiddenWindow(self)
self.tab_widget.addTab(self.window1, 'Help Page')
self.tab_widget.addTab(self.window2, 'Hidden Marcov Chain Model')
layout.addWidget(self.tab_widget)
self.setLayout(layout)
self.setWindowTitle('Stochastic App')
self.setMinimumSize(1000,800)
self.setGeometry(400, 100, 1000, 800)
# override l method fl QWidget 34an lama a2fel el app el windows kolaha te2fel
def closeEvent(self, event):
QApplication.quit()