Calculator-in-python3-tkinter icon indicating copy to clipboard operation
Calculator-in-python3-tkinter copied to clipboard

Code Update

Open Jiya-Ull-Haq opened this issue 4 years ago • 0 comments

Changes:

• Fixed Code • Added better Readme.md that helps the people interested in this repository understand your project better.


Previous code:

def clrbut():  
   textin.set('')

Explanation: After I click CE button then the numbers are just got hidden from the user side... Later when I click any number then the old number shows up again. which will be a problem for calculation and needs to rerun the application.

Code Fix:

def clrbut():  
   global operator
   operator = ""
   textin.set("")

Explanation: What this does is when I click CE button, It not only removed the numbers from the user side but also removes it from the backend side...

Jiya-Ull-Haq avatar Oct 26 '21 12:10 Jiya-Ull-Haq