-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHPController.py
More file actions
23 lines (22 loc) · 849 Bytes
/
Copy pathHPController.py
File metadata and controls
23 lines (22 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from WTWController import WTW_Controller
from HomePage import HPWindow
from AboutUs import AboutUsWindow
# Create main window
class HP_Controller(HPWindow):
def __init__(self):
# Inheritance :)
super(HP_Controller,self).__init__()
# Connect the click event to the function.
self.btn_tracker.clicked.connect(self.btnTrackerHpClicked)
# Create an object from "windows tracker" window.
self.wtw=WTW_Controller(self)
self.btn_aboutUs.clicked.connect(self.btnAboutUsClicked)
self.about=AboutUsWindow(self)
# Click function
def btnTrackerHpClicked(self):
# Hiding the main window and switch to WT (windows tracker) window
self.hide()
self.wtw.show()
def btnAboutUsClicked(self):
self.hide()
self.about.show()