Skip to content

bond_calculator

Classes:

BRMSBondCalculatorWidget

BRMSBondCalculatorWidget(parent=None)

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_bond_payment_schedule

show_bond_payment_schedule(payments)

Display the bond payment schedule in a table widget.

show_bond_value

show_bond_value(
    npv, clean_price, dirty_price, accrued_interest
)

Display the bond value in a dialog.

BaseCalculatorWidget

BaseCalculatorWidget(
    parent=None, name="Calculator", size=(600, 560)
)

Bases: QWidget

Methods:

center_window

center_window() -> None

Center the main window on the screen.