# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'app.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QRegExp
from PyQt5.QtGui import QIntValidator, QRegExpValidator


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(854, 553)

        # int validator
        self.onlyInt = QIntValidator(0, 9999999999999)

        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.home_value = QtWidgets.QLineEdit(self.centralwidget)
        self.home_value.setObjectName("home_value")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.home_value)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)

        # down_payment
        self.down_payment = QtWidgets.QLineEdit(self.centralwidget)
        regex = QRegExp("[0-9_]+")
        validator = QRegExpValidator(regex)
        self.down_payment.setValidator(validator)
        self.down_payment.setObjectName("down_payment")

        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.down_payment)
        self.radio_euro = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_euro.setChecked(False)
        self.radio_euro.setObjectName("radio_euro")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.radio_euro)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.spin_years = QtWidgets.QSpinBox(self.centralwidget)
        self.spin_years.setObjectName("spin_years")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.spin_years)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.loan_amount = QtWidgets.QLineEdit(self.centralwidget)
        self.loan_amount.setObjectName("loan_amount")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.loan_amount)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_6)
        self.interest_spin = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.interest_spin.setObjectName("interest_spin")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.interest_spin)
        self.radio_perc = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_perc.setChecked(True)
        self.radio_perc.setObjectName("radio_perc")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.radio_perc)
        self.horizontalLayout.addLayout(self.formLayout)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout.addWidget(self.line)
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName("label_4")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_3.setAutoFillBackground(False)
        self.lineEdit_3.setReadOnly(True)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_3)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_4.setReadOnly(True)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_4)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        self.label_8.setObjectName("label_8")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_8)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_6.setReadOnly(True)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEdit_6)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName("label_9")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_7.setReadOnly(True)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_7)
        self.horizontalLayout.addLayout(self.formLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setObjectName("graphicsView")
        self.verticalLayout.addWidget(self.graphicsView)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 854, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Home Loan Calculator"))
        self.label.setText(_translate("MainWindow", "Home Value (€)"))
        self.label_2.setText(_translate("MainWindow", "Down Payment"))
        self.radio_euro.setText(_translate("MainWindow", "€"))
        self.label_3.setText(_translate("MainWindow", "Terms (years)"))
        self.label_5.setText(_translate("MainWindow", "Loan Amount"))
        self.label_6.setText(_translate("MainWindow", "Interest Rate (%)"))
        self.radio_perc.setText(_translate("MainWindow", "%"))
        self.label_4.setText(_translate("MainWindow", "Monthly Payments"))
        self.label_7.setText(_translate("MainWindow", "Loan Pay-Off Date"))
        self.label_8.setText(_translate("MainWindow", "Total Interest Paid (€)"))
        self.label_9.setText(_translate("MainWindow", "Total Paid"))
        self.pushButton.setText(_translate("MainWindow", "Calculate"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))

d1adf08f9ee30d8b53d2e42145111f5cd784326b
<mask token>


class Ui_MainWindow(object):
    <mask token>
    <mask token>

<mask token>


class Ui_MainWindow(object):
    <mask token>

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate('MainWindow',
            'Home Loan Calculator'))
        self.label.setText(_translate('MainWindow', 'Home Value (€)'))
        self.label_2.setText(_translate('MainWindow', 'Down Payment'))
        self.radio_euro.setText(_translate('MainWindow', '€'))
        self.label_3.setText(_translate('MainWindow', 'Terms (years)'))
        self.label_5.setText(_translate('MainWindow', 'Loan Amount'))
        self.label_6.setText(_translate('MainWindow', 'Interest Rate (%)'))
        self.radio_perc.setText(_translate('MainWindow', '%'))
        self.label_4.setText(_translate('MainWindow', 'Monthly Payments'))
        self.label_7.setText(_translate('MainWindow', 'Loan Pay-Off Date'))
        self.label_8.setText(_translate('MainWindow',
            'Total Interest Paid (€)'))
        self.label_9.setText(_translate('MainWindow', 'Total Paid'))
        self.pushButton.setText(_translate('MainWindow', 'Calculate'))
        self.menuFile.setTitle(_translate('MainWindow', 'File'))

<mask token>


class Ui_MainWindow(object):

    def setupUi(self, MainWindow):
        MainWindow.setObjectName('MainWindow')
        MainWindow.resize(854, 553)
        self.onlyInt = QIntValidator(0, 9999999999999)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName('centralwidget')
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName('gridLayout')
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName('verticalLayout')
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName('horizontalLayout')
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName('formLayout')
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName('label')
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.
            label)
        self.home_value = QtWidgets.QLineEdit(self.centralwidget)
        self.home_value.setObjectName('home_value')
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.
            home_value)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName('label_2')
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.
            label_2)
        self.down_payment = QtWidgets.QLineEdit(self.centralwidget)
        regex = QRegExp('[0-9_]+')
        validator = QRegExpValidator(regex)
        self.down_payment.setValidator(validator)
        self.down_payment.setObjectName('down_payment')
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.
            down_payment)
        self.radio_euro = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_euro.setChecked(False)
        self.radio_euro.setObjectName('radio_euro')
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.
            radio_euro)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName('label_3')
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.
            label_3)
        self.spin_years = QtWidgets.QSpinBox(self.centralwidget)
        self.spin_years.setObjectName('spin_years')
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.
            spin_years)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName('label_5')
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.
            label_5)
        self.loan_amount = QtWidgets.QLineEdit(self.centralwidget)
        self.loan_amount.setObjectName('loan_amount')
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.
            loan_amount)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName('label_6')
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.
            label_6)
        self.interest_spin = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.interest_spin.setObjectName('interest_spin')
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.
            interest_spin)
        self.radio_perc = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_perc.setChecked(True)
        self.radio_perc.setObjectName('radio_perc')
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.
            radio_perc)
        self.horizontalLayout.addLayout(self.formLayout)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName('line')
        self.horizontalLayout.addWidget(self.line)
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName('formLayout_2')
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName('label_4')
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole,
            self.label_4)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_3.setAutoFillBackground(False)
        self.lineEdit_3.setReadOnly(True)
        self.lineEdit_3.setObjectName('lineEdit_3')
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_3)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName('label_7')
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole,
            self.label_7)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_4.setReadOnly(True)
        self.lineEdit_4.setObjectName('lineEdit_4')
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_4)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        self.label_8.setObjectName('label_8')
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole,
            self.label_8)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_6.setReadOnly(True)
        self.lineEdit_6.setObjectName('lineEdit_6')
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_6)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName('label_9')
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole,
            self.label_9)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_7.setReadOnly(True)
        self.lineEdit_7.setObjectName('lineEdit_7')
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_7)
        self.horizontalLayout.addLayout(self.formLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName('pushButton')
        self.verticalLayout.addWidget(self.pushButton)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setObjectName('graphicsView')
        self.verticalLayout.addWidget(self.graphicsView)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 854, 22))
        self.menubar.setObjectName('menubar')
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName('menuFile')
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName('statusbar')
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())
        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate('MainWindow',
            'Home Loan Calculator'))
        self.label.setText(_translate('MainWindow', 'Home Value (€)'))
        self.label_2.setText(_translate('MainWindow', 'Down Payment'))
        self.radio_euro.setText(_translate('MainWindow', '€'))
        self.label_3.setText(_translate('MainWindow', 'Terms (years)'))
        self.label_5.setText(_translate('MainWindow', 'Loan Amount'))
        self.label_6.setText(_translate('MainWindow', 'Interest Rate (%)'))
        self.radio_perc.setText(_translate('MainWindow', '%'))
        self.label_4.setText(_translate('MainWindow', 'Monthly Payments'))
        self.label_7.setText(_translate('MainWindow', 'Loan Pay-Off Date'))
        self.label_8.setText(_translate('MainWindow',
            'Total Interest Paid (€)'))
        self.label_9.setText(_translate('MainWindow', 'Total Paid'))
        self.pushButton.setText(_translate('MainWindow', 'Calculate'))
        self.menuFile.setTitle(_translate('MainWindow', 'File'))

from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QRegExp
from PyQt5.QtGui import QIntValidator, QRegExpValidator


class Ui_MainWindow(object):

    def setupUi(self, MainWindow):
        MainWindow.setObjectName('MainWindow')
        MainWindow.resize(854, 553)
        self.onlyInt = QIntValidator(0, 9999999999999)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName('centralwidget')
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName('gridLayout')
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName('verticalLayout')
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName('horizontalLayout')
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName('formLayout')
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName('label')
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.
            label)
        self.home_value = QtWidgets.QLineEdit(self.centralwidget)
        self.home_value.setObjectName('home_value')
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.
            home_value)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName('label_2')
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.
            label_2)
        self.down_payment = QtWidgets.QLineEdit(self.centralwidget)
        regex = QRegExp('[0-9_]+')
        validator = QRegExpValidator(regex)
        self.down_payment.setValidator(validator)
        self.down_payment.setObjectName('down_payment')
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.
            down_payment)
        self.radio_euro = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_euro.setChecked(False)
        self.radio_euro.setObjectName('radio_euro')
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.
            radio_euro)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName('label_3')
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.
            label_3)
        self.spin_years = QtWidgets.QSpinBox(self.centralwidget)
        self.spin_years.setObjectName('spin_years')
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.
            spin_years)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName('label_5')
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.
            label_5)
        self.loan_amount = QtWidgets.QLineEdit(self.centralwidget)
        self.loan_amount.setObjectName('loan_amount')
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.
            loan_amount)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName('label_6')
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.
            label_6)
        self.interest_spin = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.interest_spin.setObjectName('interest_spin')
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.
            interest_spin)
        self.radio_perc = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_perc.setChecked(True)
        self.radio_perc.setObjectName('radio_perc')
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.
            radio_perc)
        self.horizontalLayout.addLayout(self.formLayout)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName('line')
        self.horizontalLayout.addWidget(self.line)
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName('formLayout_2')
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName('label_4')
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole,
            self.label_4)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_3.setAutoFillBackground(False)
        self.lineEdit_3.setReadOnly(True)
        self.lineEdit_3.setObjectName('lineEdit_3')
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_3)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName('label_7')
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole,
            self.label_7)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_4.setReadOnly(True)
        self.lineEdit_4.setObjectName('lineEdit_4')
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_4)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        self.label_8.setObjectName('label_8')
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole,
            self.label_8)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_6.setReadOnly(True)
        self.lineEdit_6.setObjectName('lineEdit_6')
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_6)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName('label_9')
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole,
            self.label_9)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_7.setReadOnly(True)
        self.lineEdit_7.setObjectName('lineEdit_7')
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole,
            self.lineEdit_7)
        self.horizontalLayout.addLayout(self.formLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName('pushButton')
        self.verticalLayout.addWidget(self.pushButton)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setObjectName('graphicsView')
        self.verticalLayout.addWidget(self.graphicsView)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 854, 22))
        self.menubar.setObjectName('menubar')
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName('menuFile')
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName('statusbar')
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())
        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate('MainWindow',
            'Home Loan Calculator'))
        self.label.setText(_translate('MainWindow', 'Home Value (€)'))
        self.label_2.setText(_translate('MainWindow', 'Down Payment'))
        self.radio_euro.setText(_translate('MainWindow', '€'))
        self.label_3.setText(_translate('MainWindow', 'Terms (years)'))
        self.label_5.setText(_translate('MainWindow', 'Loan Amount'))
        self.label_6.setText(_translate('MainWindow', 'Interest Rate (%)'))
        self.radio_perc.setText(_translate('MainWindow', '%'))
        self.label_4.setText(_translate('MainWindow', 'Monthly Payments'))
        self.label_7.setText(_translate('MainWindow', 'Loan Pay-Off Date'))
        self.label_8.setText(_translate('MainWindow',
            'Total Interest Paid (€)'))
        self.label_9.setText(_translate('MainWindow', 'Total Paid'))
        self.pushButton.setText(_translate('MainWindow', 'Calculate'))
        self.menuFile.setTitle(_translate('MainWindow', 'File'))

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'app.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QRegExp
from PyQt5.QtGui import QIntValidator, QRegExpValidator


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(854, 553)

        # int validator
        self.onlyInt = QIntValidator(0, 9999999999999)

        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.home_value = QtWidgets.QLineEdit(self.centralwidget)
        self.home_value.setObjectName("home_value")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.home_value)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)

        # down_payment
        self.down_payment = QtWidgets.QLineEdit(self.centralwidget)
        regex = QRegExp("[0-9_]+")
        validator = QRegExpValidator(regex)
        self.down_payment.setValidator(validator)
        self.down_payment.setObjectName("down_payment")

        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.down_payment)
        self.radio_euro = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_euro.setChecked(False)
        self.radio_euro.setObjectName("radio_euro")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.radio_euro)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.spin_years = QtWidgets.QSpinBox(self.centralwidget)
        self.spin_years.setObjectName("spin_years")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.spin_years)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.loan_amount = QtWidgets.QLineEdit(self.centralwidget)
        self.loan_amount.setObjectName("loan_amount")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.loan_amount)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_6)
        self.interest_spin = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.interest_spin.setObjectName("interest_spin")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.interest_spin)
        self.radio_perc = QtWidgets.QRadioButton(self.centralwidget)
        self.radio_perc.setChecked(True)
        self.radio_perc.setObjectName("radio_perc")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.radio_perc)
        self.horizontalLayout.addLayout(self.formLayout)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout.addWidget(self.line)
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setObjectName("label_4")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_3.setAutoFillBackground(False)
        self.lineEdit_3.setReadOnly(True)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_3)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        self.label_7.setObjectName("label_7")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_4.setReadOnly(True)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_4)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        self.label_8.setObjectName("label_8")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_8)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_6.setReadOnly(True)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEdit_6)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName("label_9")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_7.setReadOnly(True)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_7)
        self.horizontalLayout.addLayout(self.formLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setObjectName("graphicsView")
        self.verticalLayout.addWidget(self.graphicsView)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 854, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Home Loan Calculator"))
        self.label.setText(_translate("MainWindow", "Home Value (€)"))
        self.label_2.setText(_translate("MainWindow", "Down Payment"))
        self.radio_euro.setText(_translate("MainWindow", "€"))
        self.label_3.setText(_translate("MainWindow", "Terms (years)"))
        self.label_5.setText(_translate("MainWindow", "Loan Amount"))
        self.label_6.setText(_translate("MainWindow", "Interest Rate (%)"))
        self.radio_perc.setText(_translate("MainWindow", "%"))
        self.label_4.setText(_translate("MainWindow", "Monthly Payments"))
        self.label_7.setText(_translate("MainWindow", "Loan Pay-Off Date"))
        self.label_8.setText(_translate("MainWindow", "Total Interest Paid (€)"))
        self.label_9.setText(_translate("MainWindow", "Total Paid"))
        self.pushButton.setText(_translate("MainWindow", "Calculate"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
