From 6ac426514a1529d939f37e95586b3ece2fb3d65a Mon Sep 17 00:00:00 2001 From: SAM <73647831+samhackathon@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:18:22 +0500 Subject: [PATCH] Delete LoanCalculator.py --- LoanCalculator.py | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 LoanCalculator.py diff --git a/LoanCalculator.py b/LoanCalculator.py deleted file mode 100644 index 0e84ee262c4..00000000000 --- a/LoanCalculator.py +++ /dev/null @@ -1,46 +0,0 @@ -def __init__(self): - # Create a window - window = Tk() - window.title("Loan Calculator") # Set title - - # create the input boxes. - Label(window, text = "Annual Interest Rate").grid(row = 1, - column = 1, sticky = W) - Label(window, text = "Number of Years").grid(row = 2, - column = 1, sticky = W) - Label(window, text = "Loan Amount").grid(row = 3, - column = 1, sticky = W) - Label(window, text = "Monthly Payment").grid(row = 4, - column = 1, sticky = W) - Label(window, text = "Total Payment").grid(row = 5, - column = 1, sticky = W) - - # for taking inputs - self.annualInterestRateVar = StringVar() - Entry(window, textvariable = self.annualInterestRateVar, - justify = RIGHT).grid(row = 1, column = 2) - - self.numberOfYearsVar = StringVar() - Entry(window, textvariable = self.numberOfYearsVar, - justify = RIGHT).grid(row = 2, column = 2) - - self.loanAmountVar = StringVar() - Entry(window, textvariable = self.loanAmountVar, - justify = RIGHT).grid(row = 3, column = 2) - - self.monthlyPaymentVar = StringVar() - lblMonthlyPayment = Label(window, textvariable = - self.monthlyPaymentVar).grid(row = 4, - column = 2, sticky = E) - - self.totalPaymentVar = StringVar() - lblTotalPayment = Label(window, textvariable = - self.totalPaymentVar).grid(row = 5, - column = 2, sticky = E) - - # create the button - btComputePayment = Button(window, text = "Compute Payment", - command = self.computePayment).grid( - row = 6, column = 2, sticky = E) - # Create an event loop - window.mainloop()