calculadora-tk
calculadora-tk copied to clipboard
Added History Button
Calculator History Feature Implementation
Enhanced the calculator project by introducing a Calculation History feature, allowing users to access and recall previous calculations.
Changes Made:
-
History Initialization:
- Added
self.history
variable to store calculation history.
- Added
-
History Storage:
- Modified
_get_data_in_input
method to save calculations in history.
- Modified
-
Show History Method:
- Implemented
show_history
to display history in a dedicated window.
- Implemented
-
Integration with UI:
- Connected
show_history
method to a "Show History" button.
- Connected
Summary:
Users can now review and recall their last 10 calculations using the "Show History" button, enhancing usability and overall user experience.