You are browsing as a guest. Sign up (or log in) to start making projects!

Basic Calculator

  • 1 Devlogs
  • 4 Total hours

**A modern desktop calculator built with Python, PySide6 and Streamlit, featuring a clean GUI and smart input validation for smooth calculations.**

Ship #1 Changes requested

I made a basic calculator using Python and PySide6, with a Streamlit web version so it can also be used directly in a browser. The most challenging part was connecting the buttons with the calculator functions and making sure the operations worked correctly. Deploying the Streamlit version was also a new experience for me. I am proud that I built the calculator myself and successfully turned it into a working web application with a live demo. You can test the calculator by entering numbers and using +, -, *, /, then pressing = to calculate the result. The C button clears the display. Avoid dividing by zero.

  • 1 devlog
  • 4h
Try project → See source code →
Open comments for this post

3h 56m 16s logged

I started this project to learn how to create graphical applications using Python and PySide6. I first learned how to create buttons and a display, then used QGridLayout and loops to arrange the calculator buttons. I implemented button-click handling and operator validation so multiple operators cannot be entered consecutively. I also learned about signals, connect(), lambda functions, and Qt alignment while designing the GUI. Finally, I styled the calculator to make the interface cleaner and more aesthetic.

0
0
23

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…