Skip to content

mortgage_calculator

Classes:

BRMSMortgageCalculatorWidget

BRMSMortgageCalculatorWidget(
    parent=None,
    name="Mortgage Calculator",
    size=(1500, 500),
)

Bases: BaseCalculatorWidget

Methods:

center_window

center_window() -> None

Center the main window on the screen.

parse_view_params

parse_view_params()

Parse the parameters from the widget inputs and return a tuple of values.

show_loan_payment_schedule

show_loan_payment_schedule(
    interest_pmt, principal_pmt, outstanding_amt
)

Display the bond payment schedule in the table widget.

show_loan_value

show_loan_value(
    npv, total_interest_pmt, total_principal_pmt, total_pmt
)

Display the bond value in a dialog.

PlotWidget

PlotWidget(title: str = '', parent=None)

Bases: QWidget

Methods:

update_plot_style

update_plot_style()

Update figure and axes colors to match the theme.