-
Notifications
You must be signed in to change notification settings - Fork 1
/
genplotter.py
31 lines (22 loc) · 978 Bytes
/
genplotter.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
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QLabel
from projectmodel import ProjectModel
from widgets.centralwidget.chartfield import ChartField
from widgets.mainwindow import MainWindow
from controllers.ldw_controller import LdwController
from controllers.tb_controller import TbController
from controllers.mb_controller import MbController
class GenPlotter():
def __init__(self):
super().__init__() # mb tb ldw are included
self.pm = ProjectModel()
self.pm.mw = MainWindow()
self.pm.chartfield = ChartField()
self.pm.c1 = LdwController(self.pm)
self.pm.c2 = TbController(self.pm)
self.pm.c3 = MbController(self.pm)
self.pm.mw.setMenuBar(self.pm.mb)
self.pm.mw.addToolBar(Qt.LeftToolBarArea, self.pm.tb)
self.pm.mw.addDockWidget(Qt.LeftDockWidgetArea,self.pm.ldw,Qt.Vertical)
self.pm.mw.setCentralWidget(self.pm.chartfield)
self.pm.mw.showMaximized()