Skip to content

Commit 2cd8298

Browse files
authored
Update README.md
1 parent 0d23af4 commit 2cd8298

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

README.md

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ The main window consists of several sections:
2626
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/MainWindow2.PNG)
2727
5. Click the button corresponding to the desired operation (Sum, Difference, Product, or Quotient).
2828
6. The result of the calculation will be displayed in the display area.
29-
7. The calculation will be added to the history box along with the formula used (e.g., "5 + 3 = 8").
30-
8. You can perform multiple calculations and view their history.
29+
30+
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/ResultsAndHistory.PNG)
31+
8. The calculation will be added to the history box along with the formula used (e.g., "5 + 3 = 8").
32+
9. You can perform multiple calculations and view their history.
3133

3234
## Saving History
3335
1. Click the "History Save" button.
@@ -40,33 +42,17 @@ The main window consists of several sections:
4042

4143
## Error Handling
4244
- The application performs basic input validation. If you enter a non-numeric value in the input fields, an error message will be displayed, and the input fields will be highlighted in pink.
45+
46+
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/InputError.PNG)
4347
- Division by zero is not allowed. If you attempt to divide by zero, an error message will be displayed, and the Number 2 input field will be highlighted in pink.
48+
49+
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/ErrorDividedByZero.PNG)
4450

4551
## Additional Notes
4652
- Tooltips are available for most buttons, providing a brief description of their functionality.
4753
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/Tooltip.png)
4854
- The application uses a dark blue color scheme for buttons and message boxes, enhancing readability.
4955

50-
51-
52-
53-
54-
55-
56-
57-
58-
- Input can be only a number:
59-
60-
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/InputError.PNG)
61-
62-
- Numbers can not be devided by zero:
63-
64-
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/ErrorDividedByZero.PNG)
65-
66-
### Results
67-
![](https://github.com/hrosicka/PyQtSimpleCalculator/blob/master/doc/ResultsAndHistory.PNG)
68-
69-
7056
## Unit tests
7157
### Class TestCalculator
7258
Class TestCalculator contains unit tests for the Calculator class.

0 commit comments

Comments
 (0)