calculadora-tk icon indicating copy to clipboard operation
calculadora-tk copied to clipboard

Added History Button

Open HappyLife2 opened this issue 1 year ago • 0 comments

Calculator History Feature Implementation

Enhanced the calculator project by introducing a Calculation History feature, allowing users to access and recall previous calculations.

Changes Made:

  1. History Initialization:

    • Added self.history variable to store calculation history.
  2. History Storage:

    • Modified _get_data_in_input method to save calculations in history.
  3. Show History Method:

    • Implemented show_history to display history in a dedicated window.
  4. Integration with UI:

    • Connected show_history method to a "Show History" button.

Summary:

Users can now review and recall their last 10 calculations using the "Show History" button, enhancing usability and overall user experience.

HappyLife2 avatar Jan 27 '24 14:01 HappyLife2