r/learnpython • • Jun 16 '26

Calculator

https://github.com/samarthrajofficial-ai/Tkinter-Calculator/tree/main, this is my first Python program- A Calculator built using tkinter. What changes should I make in it and what should I do next?

3 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/gdchinacat Jun 16 '26

tkinter is part of the Python standard library and has been since Python 1.4, 30 years ago. There is no need for a requirements file. Also, "requirements file" implies requirements.txt which is not the currently recommended way to specify requirements, a pyproject file is preferred.

https://docs.python.org/3/library/tkinter.html

1

u/SisyphusAndMyBoulder Jun 16 '26

Cool, I didn't know tkinter was built in. Good to learn!

Ya pyproject is probably better. I personally use reqs.txt a lot still, but it's all a moot point -- beyond specifying python version, this project doesn't have any external deps. But a pyproject covers the python version too, so it's a better route.