Esempio n. 1
0
 def WithdrawalCancle(self):
     from MainProfile import Ui_MainWindow
     print('WithdrawalCancle')
     self.MainWindow = QtWidgets.QMainWindow()
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self.MainWindow)
     self.MainWindow.show()
 def profile(self):
     self.MainWindow = QtWidgets.QMainWindow()
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self.MainWindow)
     self.MainWindow.show()
Esempio n. 3
0
class Ui_WithdrawalWindow(object,):
    def setupUi(self, WithdrawalWindow):
        WithdrawalWindow.setObjectName("WithdrawalWindow")
        WithdrawalWindow.resize(480, 368)
        WithdrawalWindow.setStyleSheet("background-color: rgb(12, 31, 45);\n"
"")
        self.centralwidget = QtWidgets.QWidget(WithdrawalWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.formLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.formLayoutWidget.setGeometry(QtCore.QRect(20, 80, 411, 121))
        self.formLayoutWidget.setObjectName("formLayoutWidget")
        self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.formLayout.setObjectName("formLayout")
        self.label_3 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_3.setText("")
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.label_3)
        self.label_amountWTD = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_amountWTD.setStyleSheet("font: 75 8pt \"Verdana\";\n"
"color: rgb(252, 255, 255);")
        self.label_amountWTD.setObjectName("label_amountWTD")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_amountWTD)
        self.lineEdit_withdrawaAmt = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_withdrawaAmt.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.lineEdit_withdrawaAmt.setObjectName("lineEdit_withdrawaAmt")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_withdrawaAmt)
        self.label_OTPwithdrawal = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_OTPwithdrawal.setStyleSheet("font: 75 8pt \"Verdana\";\n"
"color: rgb(252, 255, 255);")
        self.label_OTPwithdrawal.setObjectName("label_OTPwithdrawal")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_OTPwithdrawal)
        self.lineEdit_withdrawalOTP = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_withdrawalOTP.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.lineEdit_withdrawalOTP.setObjectName("lineEdit_withdrawalOTP")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_withdrawalOTP)
        self.comboBox_withdrawalAcctype = QtWidgets.QComboBox(self.formLayoutWidget)
        self.comboBox_withdrawalAcctype.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.comboBox_withdrawalAcctype.setObjectName("comboBox_withdrawalAcctype")
        self.comboBox_withdrawalAcctype.addItem("")
        self.comboBox_withdrawalAcctype.addItem("")
        self.comboBox_withdrawalAcctype.addItem("")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.comboBox_withdrawalAcctype)
        self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit.setGeometry(QtCore.QRect(60, 30, 331, 41))
        self.textEdit.setStyleSheet("font: 75 14pt \"Verdana\";\n"
"color: rgb(252, 255, 255);")
        self.textEdit.setObjectName("textEdit")
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(-40, 200, 601, 20))
        self.line.setStyleSheet("")
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.line_2 = QtWidgets.QFrame(self.centralwidget)
        self.line_2.setGeometry(QtCore.QRect(-10, 80, 501, 20))
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.formLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(130, 260, 213, 31))
        self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.formLayoutWidget_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton_withdrawlWithdrawbtn = QtWidgets.QPushButton(self.formLayoutWidget_2)
        self.pushButton_withdrawlWithdrawbtn.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.pushButton_withdrawlWithdrawbtn.setObjectName("pushButton_withdrawlWithdrawbtn")
        self.horizontalLayout.addWidget(self.pushButton_withdrawlWithdrawbtn)
        self.pushButton_withdrawalCancel = QtWidgets.QPushButton(self.formLayoutWidget_2)
        self.pushButton_withdrawalCancel.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.pushButton_withdrawalCancel.setObjectName("pushButton_withdrawalCancel")
        self.horizontalLayout.addWidget(self.pushButton_withdrawalCancel)
        WithdrawalWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(WithdrawalWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 480, 26))
        self.menubar.setObjectName("menubar")
        WithdrawalWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(WithdrawalWindow)
        self.statusbar.setObjectName("statusbar")
        WithdrawalWindow.setStatusBar(self.statusbar)

        self.retranslateUi(WithdrawalWindow)
        QtCore.QMetaObject.connectSlotsByName(WithdrawalWindow)
        self.pushButton_withdrawalCancel.clicked.connect(self.WithdrawalCancle)
        self.pushButton_withdrawlWithdrawbtn.clicked.connect(self.WithdrwalButton)

    def getText(self):
        from Qinputdialo import App
        name = App.getText(App)
        print(name)
        # from PyQt5.QtWidgets import QInputDialog, QLineEdit
        # text, okPressed = QInputDialog.getText(self, "Get text", "Your name:", QLineEdit.Normal, "")
        # if okPressed and text != '':
        #     print(text)

    def WithdrwalButton(self):
        print('Withdrawal button')
        # import sqlite3
        # self.getText()
        #
        # conn = sqlite3.connect("BankNH.db")
        # okPressed = self.getText()
        # with conn:
        #     cur= conn.cursor()
        #     cur.execute("SELECT BAL FROM NEWBANK WHERE PASSWORD =? ", ([okPressed,]))
        #     data = cur.fetchall()
        #     print(data)
        #     print('WithdrwalButton')


    def WithdrawalCancle(self):
        from MainProfile import Ui_MainWindow
        print('WithdrawalCancle')
        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)
        self.MainWindow.show()


    def retranslateUi(self, WithdrawalWindow):
        _translate = QtCore.QCoreApplication.translate
        WithdrawalWindow.setWindowTitle(_translate("WithdrawalWindow", "Withdrawal"))
        self.label_amountWTD.setText(_translate("WithdrawalWindow", "AMOUNT"))
        self.label_OTPwithdrawal.setText(_translate("WithdrawalWindow", "OTP"))
        self.comboBox_withdrawalAcctype.setItemText(0, _translate("WithdrawalWindow", "Account Type"))
        self.comboBox_withdrawalAcctype.setItemText(1, _translate("WithdrawalWindow", "Savings"))
        self.comboBox_withdrawalAcctype.setItemText(2, _translate("WithdrawalWindow", "Current"))
        self.textEdit.setHtml(_translate("WithdrawalWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Verdana\'; font-size:14pt; font-weight:72; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7.8pt; font-weight:400;\">Please Note you need an OTP on your Register Number to use the withdrawal</span></p></body></html>"))
        self.pushButton_withdrawlWithdrawbtn.setText(_translate("WithdrawalWindow", "WITHDRAW"))
        self.pushButton_withdrawalCancel.setText(_translate("WithdrawalWindow", "Cancel"))
Esempio n. 4
0
 def CancleTxf(self):
     self.MainWindow = QtWidgets.QMainWindow()
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self.MainWindow)
     self.MainWindow.show()
Esempio n. 5
0
class Ui_TransferWindow(object):
    def setupUi(self, TransferWindow):
        TransferWindow.setObjectName("TransferWindow")
        TransferWindow.resize(567, 352)
        TransferWindow.setStyleSheet("background-color: rgb(12, 31, 45);\n"
"")
        self.centralwidget = QtWidgets.QWidget(TransferWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.formLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.formLayoutWidget.setGeometry(QtCore.QRect(10, 30, 468, 183))
        self.formLayoutWidget.setObjectName("formLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.formLayoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.line_2 = QtWidgets.QFrame(self.formLayoutWidget)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout.addWidget(self.line_2, 0, 1, 1, 1)
        self.label_amount2txf = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_amount2txf.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.label_amount2txf.setObjectName("label_amount2txf")
        self.gridLayout.addWidget(self.label_amount2txf, 1, 0, 1, 1)
        self.lineEdit_name2txf = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_name2txf.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.lineEdit_name2txf.setObjectName("lineEdit_name2txf")
        self.gridLayout.addWidget(self.lineEdit_name2txf, 2, 1, 1, 1)
        self.label_name2txf = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_name2txf.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.label_name2txf.setObjectName("label_name2txf")
        self.gridLayout.addWidget(self.label_name2txf, 2, 0, 1, 1)
        self.label_number2txf = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_number2txf.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.label_number2txf.setObjectName("label_number2txf")
        self.gridLayout.addWidget(self.label_number2txf, 3, 0, 1, 1)
        self.comboBox_accountType = QtWidgets.QComboBox(self.formLayoutWidget)
        self.comboBox_accountType.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.comboBox_accountType.setObjectName("comboBox_accountType")
        self.comboBox_accountType.addItem("")
        self.comboBox_accountType.addItem("")
        self.comboBox_accountType.addItem("")
        self.gridLayout.addWidget(self.comboBox_accountType, 5, 0, 1, 2)
        self.lineEdit_account2txf = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_account2txf.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.lineEdit_account2txf.setObjectName("lineEdit_account2txf")
        self.gridLayout.addWidget(self.lineEdit_account2txf, 3, 1, 1, 1)
        self.comboBox_bankType = QtWidgets.QComboBox(self.formLayoutWidget)
        self.comboBox_bankType.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.comboBox_bankType.setObjectName("comboBox_bankType")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.comboBox_bankType.addItem("")
        self.gridLayout.addWidget(self.comboBox_bankType, 6, 0, 1, 2)
        self.line = QtWidgets.QFrame(self.formLayoutWidget)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 4, 1, 1, 1)
        self.lineEdit_amount2txf = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_amount2txf.setStyleSheet("background-color: rgb(252, 252, 252);\n"
"font: 75 10pt \"Verdana\";\n"
"color: rgb(12, 31, 45);")
        self.lineEdit_amount2txf.setObjectName("lineEdit_amount2txf")
        self.gridLayout.addWidget(self.lineEdit_amount2txf, 1, 1, 1, 1)
        self.formLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(160, 240, 211, 80))
        self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
        self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget_2)
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.formLayout.setObjectName("formLayout")
        self.pushButton_transferTransfer = QtWidgets.QPushButton(self.formLayoutWidget_2)
        self.pushButton_transferTransfer.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.pushButton_transferTransfer.setObjectName("pushButton_transferTransfer")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.pushButton_transferTransfer)
        self.pushButton_transferCancle = QtWidgets.QPushButton(self.formLayoutWidget_2)
        self.pushButton_transferCancle.setStyleSheet("font: 75 10pt \"Verdana\";\n"
"color: rgb(252, 252, 252);")
        self.pushButton_transferCancle.setObjectName("pushButton_transferCancle")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.pushButton_transferCancle)
        TransferWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(TransferWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 567, 26))
        self.menubar.setObjectName("menubar")
        TransferWindow.setMenuBar(self.menubar)

        self.retranslateUi(TransferWindow)
        QtCore.QMetaObject.connectSlotsByName(TransferWindow)
        self.pushButton_transferCancle.clicked.connect(self.CancleTxf)

    def message(self, title, message):
        mssg = QMessageBox()
        mssg.setWindowTitle(title)
        mssg.setIcon(QMessageBox.Warning)
        mssg.setStandardButtons(QMessageBox.Ok | QMessageBox.Cancel)
        mssg.setText(message)
        mssg.exec_()

    def SendTransfer(self):
        import sqlite3
        conn = sqlite3.connect("BankNH.db")
        cur = conn.cursor()
        cur.execute("SELECT FIRSTNAME FROM NEWBANK")
        table = cur.fetchall()
        print(table)
        amount = self.lineEdit_amount2txf.text()
        amount2send = int(amount)
        name2send = self.lineEdit_name2txf.text()
        number2send = self.lineEdit_account2txf.text()
        if amount2send != '':
            print('amount worked')
            if table:
                self.message('error sending', 'Please Check the name you are sending to')
            else:
                print('working')
                if number2send != '':
                    print('Number fine')
        else:
            print('Transfer send')

    def CancleTxf(self):
        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)
        self.MainWindow.show()


    def retranslateUi(self, TransferWindow):
        _translate = QtCore.QCoreApplication.translate
        TransferWindow.setWindowTitle(_translate("TransferWindow", "Transfer"))
        self.label_amount2txf.setText(_translate("TransferWindow", "ENTER AMOUNT TO DEPOSIT"))
        self.label_name2txf.setText(_translate("TransferWindow", "ACCOUNT NAME"))
        self.label_number2txf.setText(_translate("TransferWindow", "ACCOUNT NUMBER"))
        self.comboBox_accountType.setItemText(0, _translate("TransferWindow", "Account Type"))
        self.comboBox_accountType.setItemText(1, _translate("TransferWindow", "SAVINGS"))
        self.comboBox_accountType.setItemText(2, _translate("TransferWindow", "CURRENT"))
        self.comboBox_bankType.setItemText(0, _translate("TransferWindow", "Choose Bank Name Below"))
        self.comboBox_bankType.setItemText(1, _translate("TransferWindow", "FirstBank"))
        self.comboBox_bankType.setItemText(2, _translate("TransferWindow", "GTB"))
        self.comboBox_bankType.setItemText(3, _translate("TransferWindow", "STABIC"))
        self.comboBox_bankType.setItemText(4, _translate("TransferWindow", "POLARIS"))
        self.comboBox_bankType.setItemText(5, _translate("TransferWindow", "FCMB"))
        self.comboBox_bankType.setItemText(6, _translate("TransferWindow", "ACCESS"))
        self.comboBox_bankType.setItemText(7, _translate("TransferWindow", "Others"))
        self.pushButton_transferTransfer.setText(_translate("TransferWindow", "TRANSFER"))
        self.pushButton_transferCancle.setText(_translate("TransferWindow", "CANCLE"))
Esempio n. 6
0
 def DepositCancled(self):
     print('DepositCancled')
     self.MainWindow = QtWidgets.QMainWindow()
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self.MainWindow)
     self.MainWindow.show()
Esempio n. 7
0
class Ui_DepositWindow(object):
    def setupUi(self, DepositWindow):
        DepositWindow.setObjectName("DepositWindow")
        DepositWindow.resize(348, 251)
        DepositWindow.setStyleSheet("background-color: rgb(12, 31, 45);\n" "")
        self.centralwidget = QtWidgets.QWidget(DepositWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_deposit = QtWidgets.QLabel(self.centralwidget)
        self.label_deposit.setStyleSheet("font: 75 10pt \"Verdana\";\n"
                                         "color: rgb(252, 255, 255);")
        self.label_deposit.setObjectName("label_deposit")
        self.gridLayout.addWidget(self.label_deposit, 0, 0, 1, 1)
        self.lineEdit_depositbox = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_depositbox.setStyleSheet(
            "background-color: rgb(252, 252, 252);\n"
            "font: 75 10pt \"Verdana\";\n"
            "color: rgb(12, 31, 45);")
        self.lineEdit_depositbox.setObjectName("lineEdit_depositbox")
        self.gridLayout.addWidget(self.lineEdit_depositbox, 0, 1, 1, 1)
        self.comboBox_depositCombo = QtWidgets.QComboBox(self.centralwidget)
        self.comboBox_depositCombo.setStyleSheet(
            "background-color: rgb(252, 252, 252);\n"
            "font: 75 10pt \"Verdana\";\n"
            "color: rgb(12, 31, 45);")
        self.comboBox_depositCombo.setObjectName("comboBox_depositCombo")
        self.comboBox_depositCombo.addItem("")
        self.comboBox_depositCombo.addItem("")
        self.comboBox_depositCombo.addItem("")
        self.gridLayout.addWidget(self.comboBox_depositCombo, 1, 0, 1, 2)
        self.pushButton_depositbtn = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_depositbtn.setStyleSheet(
            "background-color: rgb(252, 252, 252);\n"
            "font: 75 10pt \"Verdana\";\n"
            "color: rgb(12, 31, 45);")
        self.pushButton_depositbtn.setObjectName("pushButton_depositbtn")
        self.gridLayout.addWidget(self.pushButton_depositbtn, 2, 0, 1, 2)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton_deposit_cancle = QtWidgets.QPushButton(
            self.centralwidget)
        self.pushButton_deposit_cancle.setStyleSheet(
            "background-color: rgb(252, 252, 252);\n"
            "font: 75 8pt \"Verdana\";\n"
            "color: rgb(12, 31, 45);")
        self.pushButton_deposit_cancle.setObjectName(
            "pushButton_deposit_cancle")
        self.horizontalLayout.addWidget(self.pushButton_deposit_cancle)
        self.pushButton_deposit_transfer = QtWidgets.QPushButton(
            self.centralwidget)
        self.pushButton_deposit_transfer.setStyleSheet(
            "background-color: rgb(252, 252, 252);\n"
            "font: 75 8pt \"Verdana\";\n"
            "color: rgb(12, 31, 45);")
        self.pushButton_deposit_transfer.setObjectName(
            "pushButton_deposit_transfer")
        self.horizontalLayout.addWidget(self.pushButton_deposit_transfer)
        self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1)
        DepositWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(DepositWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 348, 26))
        self.menubar.setObjectName("menubar")
        DepositWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(DepositWindow)
        self.statusbar.setObjectName("statusbar")
        DepositWindow.setStatusBar(self.statusbar)

        self.retranslateUi(DepositWindow)
        QtCore.QMetaObject.connectSlotsByName(DepositWindow)
        self.pushButton_deposit_cancle.clicked.connect(self.DepositCancled)
        self.pushButton_deposit_transfer.clicked.connect(self.TransferDeposit)

    def TransferDeposit(self):
        print('TransferDeposit')

    def DepositCancled(self):
        print('DepositCancled')
        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)
        self.MainWindow.show()

    def retranslateUi(self, DepositWindow):
        _translate = QtCore.QCoreApplication.translate
        DepositWindow.setWindowTitle(_translate("DepositWindow", "Deposit"))
        self.label_deposit.setText(_translate("DepositWindow", "AMOUNT"))
        self.comboBox_depositCombo.setItemText(
            0, _translate("DepositWindow", "Account Type"))
        self.comboBox_depositCombo.setItemText(
            1, _translate("DepositWindow", "Savings"))
        self.comboBox_depositCombo.setItemText(
            2, _translate("DepositWindow", "Current"))
        self.pushButton_depositbtn.setText(
            _translate("DepositWindow", "MAKE DEPOSIT"))
        self.pushButton_deposit_cancle.setText(
            _translate("DepositWindow", "GO BACK OR CANCLE"))
        self.pushButton_deposit_transfer.setText(
            _translate("DepositWindow", "TRANSFER INSTEAD"))