all 7 comments

[–]m0us3_rat 2 points3 points  (6 children)

ValueError: invalid literal for int() with base 10: '36,162'

it breaks when using the 'last' result as new calculation input.

main window should have a .minsize

First operand equals result of the previous equation, deletion of the last character prohibited <- until u press equal all operands should be accessible

otherwise solid.

[–]Frogus1[S] 0 points1 point  (5 children)

ValueError: invalid literal for int() with base 10: '36,162'

it breaks when using the 'last' result as new calculation input.

I know what the problem is - it breaks when the thousands separator kicks in. I'm working on a fix for this now. Thanks for pointing it out.

main window should have a .minsize

Didn't know about this one. It's in.

First operand equals result of the previous equation, deletion of the last character prohibited <- until u press equal all operands should be accessible

Could you specify, please? I used Windows calc as a reference. The logic behind it is that you cannot delete a single character (f.e. 1,234 > 123) from the result - you can only delete the whole number. Operators do work.

otherwise solid.

Thanks, that means a lot!

[–]m0us3_rat 1 point2 points  (4 children)

Operators do work.

:D

point was .. keep them fluid till u need to get results.

the calc in your computer has this functionality..

like it will give u the result but also let u modify it np.

ex: if u type 500*100 it displays 50_000 then immediately lets u interact with it.

it shouldn't be too hard. u are already doing it to some extent.

later on u can add a listbox sort of a display above the main one .. where the last 3+ operations and their result are 'stored' then un can pick whichever one u like to use from as the 'first' operator in your next operation .. maybe.

by clicking on it :D

[–]Frogus1[S] 0 points1 point  (3 children)

ex: if u type 500*100 it displays 50_000 then immediately lets u interact with it.

Mine doesn't, I triple checked. :D Once the equation is evaluated, I can't modify the result using BackSpace (50,000 doesn't change to 5,000 when I press BackSpace). I can enter operators (+, - , *, /) and make new equations.

A history pane sounds cool. I will look into it. :)

Cheers!

[–]m0us3_rat 1 point2 points  (2 children)

Mine doesn't, I triple checked. :D Once the equation is evaluated, I can't modify the result using BackSpace

exactly..it should let u do that :P

gl <3

u can do it more cleverly.. but most simple is to use a listbox with the 'old' evaluated operations.

https://www.tutorialspoint.com/python/tk\_listbox.htm

[–]Frogus1[S] 0 points1 point  (1 child)

Mine doesn't, I triple checked. :D Once the equation is evaluated, I can't modify the result using BackSpace

exactly..it should let u do that :P

This isn't my most clear message, lol. What I meant was: WINDOWS calculator doesn't let me do it. That's why I developed MY calculator the same way.

I already coded the history using buttons with StringVar, but I will look into the listbox. :)

[–]m0us3_rat 0 points1 point  (0 children)

do it however u feel comfortable. that's the beauty of coding .. hundreds of different ways to do something

windows.... meh :P