Thank you so much for your kind words! 🙏 Greetings to you from Singapore! 🌍 I'm thrilled to hear you enjoyed the video. Stay tuned for more exciting content, and happy coding! 🚀✨
You're very welcome! I'm glad you found the tutorial helpful. If you have any more questions or need further assistance, feel free to ask. Happy coding!
I have added a small error handler so that the "=" key does not cause a crash when the display field is empty def buttonClick(number): global operator # operator = operator + str(number) operator += str(number) input_value.set(operator) def button_Clear(): global operator operator = "" input_value.set("") def buttonEqual(): global operator try: result = str(eval(operator)) input_value.set(result) except (SyntaxError, ZeroDivisionError): input_value.set("Error") finally: operator = "" main = Tk() Gemini has helped me 🙂
Thank you so much 🙂. Can you check the source code in GitHub I tried it worked for me github.com/Salow-Studios/Python-Calculator-with-GUI-using-Tkinter
Sorry to bother you but ive been trying to use github I made a new repository linked it to vsc but it wont let me code it in python do you no how I can fix this?
No problem, I am happy to help. Github is a Version Control System which helps to save our code in cloud by creating tags and branches thus we can go back to previous version if our current version has problems. If I am right you have created a new repo in Github and cloned in you local disk and have opened in your VSC. Have you tried creating a file with .py?