Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Fixes #320 ,The zero division error and added a new power button to calculate power#321

Merged
AdityaJ7 merged 3 commits into
Python-World:masterfrom
Atharv-Joshi:patch
Oct 4, 2020
Merged

Fixes #320 ,The zero division error and added a new power button to calculate power#321
AdityaJ7 merged 3 commits into
Python-World:masterfrom
Atharv-Joshi:patch

Conversation

@Atharv-Joshi
Copy link
Copy Markdown
Contributor

Description

A short summary of what is included in your Pull Request.

The calculator.py file has been updated and the zero division error has been solved.
Now a popup is shown to the user instructing him/her to correct the input instead of displaying the error message on the terminal.

A new 'power' button is added which calculates a ^ b .

The output.png is respectively updated and contains the screenshot of the new UI.

The readme.md is also updated with the new screenshot

Working Screenshot :
popup

Fixes #320

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation Update

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

  • I have named my files and folder, according to this project's guidelines.
  • My code follows the style guidelines of this project.
  • My Pull Request has a descriptive title. (not a vague title like Update index.md)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • I have included a requirements.txt file (if external libraries are required.)
  • My changes do not produce any warnings.
  • I have added a working sample/screenshot of the script.

The zero division error which was caused whenever a number was divided by zero has been solved.
Now if such a cases arises a popup alert tells the user to enter valid values.Also the text field is cleared
@AdityaJ7 AdityaJ7 merged commit 2d6a464 into Python-World:master Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero Division Error in create_calculator_app

2 participants