-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fixes #134
Bug fixes #134
Conversation
home-choice-pro/views/main_window.py
Outdated
self.setWindowTitle("Home Choice Pro") | ||
self.guide = self.open_guide() | ||
self.ui.guideLabel.setText(self.guide) | ||
self.pmi_warned = False | ||
self.not_pmi_warned = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'not_pmi_warned'? A more intuitive way to write this would be 'pmi_error_alerted = False'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, but for the conditional statement, either both need to be true or both false. This seemed logical but I can look again.
home-choice-pro/views/main_window.py
Outdated
message = "Private Mortage Insurance typically required with down payments less than 20 percent" | ||
QMessageBox.warning(self, "PMI Error", message) | ||
self.pmi_warned = True | ||
self.not_pmi_warned = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'pmi_error_alerted = True' ; this insinuates that the error message has alerted the user.
self.ui.PMIEdit.text(), | ||
) | ||
calc = af_calc() | ||
calc.process_affordability(*self.parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this! A very clean way to call the calc pass the argument to the object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think need to think about a way to guarantee the argument order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm referencing the GUI:
- Instead of assuming the user understands "PMI", we should write out "Private Mortage Insurance".
- Instead of "Monthly Budget", a clearer message would be "Desired Monthly Budget".
Good idea for the gui enhancements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clean. I like how you've re-constructed the affordability_calculator class. I don't have any further suggestions. I see you and Joey still have some ongoing discussions, so I won't merge it at this time.
This PR factors the backend, and solves a lot of bugs.