Skip to content

Upgrade to CustomTkinter UI and Enhance Scientific Calculator Functions #52

@bektas-sari

Description

@bektas-sari

This pull request introduces several improvements and new features to the calculator application:
• Modern UI with CustomTkinter:
o Replaced the standard tkinter UI with customtkinter to provide a sleek, modern, and customizable interface.
o Improved overall aesthetics and usability of the application.
• Enhanced Scientific Calculator Functions:
o Added dedicated scientific calculation features, including buttons for square root (√), logarithm (log), sine (sin), cosine (cos), and exponentiation (x^y).
o Scientific functions now insert the correct expressions (e.g., "math.sqrt()" is inserted when the √ button is pressed).
• Bug Fix in Scientific Mode:
o Resolved an issue where, after selecting a scientific function (e.g., √) and entering numbers (e.g., 69), the expression was missing the closing parenthesis (resulting in "math.sqrt(69" instead of "math.sqrt(69)").
o The fix ensures that once the user inputs the number, the closing parenthesis is automatically appended, making the expression complete and evaluable.
• Code Refactoring and Readability Enhancements:
o Refactored the code to improve readability and maintainability.
o Improved the handling of user input for both standard and scientific operations.
These changes enhance both the functionality and the user experience of the calculator application. I have thoroughly tested the new features and verified that the scientific functions now work correctly.
Please review the changes and let me know if further adjustments are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions