0

Writing a calculator code with Tkinter

Hello everybody! I am planning to write a calculator code with Tkinter module. I know how to define functions and plan the mainscreen with active buttons. But how can I write the decimal numbers? I mean when I press ā€œ2ā€, program will add ā€œ2ā€ to the mainscreen but when I press to a second number, for example ā€œ3ā€ it must be ā€œ20+3ā€. If I could manage it I think I can write the functions for calculations. I hope I told my problem exactly. Have a good weekend and take care?

15th Nov 2020, 9:28 AM
Murat Dıramalı
2 Answers
+ 1
Hello, your question isn't too clear. What's the problem with that?
15th Nov 2020, 10:09 AM
Slick
Slick - avatar