Timeline for Tkinter based calculator
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 1, 2018 at 18:36 | comment | added | G. Sliepen |
Think about what abstractions the classes represent, and what would happen if you would change one of them completely. For example, what if you would make a text console version of the calculator? Then the interface presented to the user would be different. Adding/deleting characters is maybe something best handled in the user interface class, but validating whether an input is valid is best handled in the CalculaterFunctions class.
|
|
| Sep 30, 2018 at 23:15 | comment | added | Brian | Also, can I just move the backspace function to the GUI class as well as all it does is update the contents of the tkinter entry field by deleting a character at a given position? | |
| Sep 30, 2018 at 22:29 | comment | added | Brian | I ask this because the only thing that the buttons do is update the tkinter entry field in the GUI class, so no real functionality behind them is required. | |
| Sep 30, 2018 at 22:21 | comment | added | Brian | Hi! Sorry for bothering you again. Would it be okay to just have the add_input in my GUI class, or does it need to be handled in the function class as technically it's functionality? | |
| Sep 29, 2018 at 2:30 | vote | accept | Brian | ||
| Sep 24, 2018 at 17:06 | comment | added | G. Sliepen |
@D.Austerus: it is. Just try removing self.root = root in CalculatorFunctions' initializer.
|
|
| Sep 24, 2018 at 7:15 | comment | added | Brian | @G.Sliepen, in my code, is the following algorithm at the start of the "CalculatorFunctions" class redundant? def __init__(self, root): self.root = root | |
| Sep 24, 2018 at 6:41 | vote | accept | Brian | ||
| Sep 29, 2018 at 2:30 | |||||
| Sep 23, 2018 at 22:57 | comment | added | Brian | Thank you so much for putting the time in to help me out! :) Very grateful | |
| Sep 19, 2018 at 19:17 | history | edited | G. Sliepen | CC BY-SA 4.0 |
added 10 characters in body
|
| Sep 19, 2018 at 19:11 | history | edited | G. Sliepen | CC BY-SA 4.0 |
added 10 characters in body
|
| Sep 19, 2018 at 19:05 | history | answered | G. Sliepen | CC BY-SA 4.0 |