-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.py
25 lines (20 loc) · 844 Bytes
/
Start.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
from PyQt5 import QtWidgets
from Roles.SignUp import SignUpWidget
from Roles.Patient1_form import ShowTimesWidget
from Roles.PatientDashBord import PatientDashbordWidget
import mysql.connector
class MainWindow(QtWidgets.QMainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.resize(800, 600)
self.central_widget = QtWidgets.QStackedWidget()
self.setCentralWidget(self.central_widget)
login_widget = SignUpWidget( self.central_widget, self)
# login_widget = ShowTimesWidget(self.central_widget, self)
#login_widget = PatientDashbordWidget(self.central_widget, self)
self.central_widget.addWidget(login_widget)
if __name__ == '__main__':
app = QtWidgets.QApplication([])
window = MainWindow()
window.show()
app.exec_()