← Back to All Projects

Python Calculator (CLI, Tkinter Desktop GUI, & Web Application)

A multi-tier calculator suite demonstrating clean separation of application logic across terminal, desktop GUI, and web-hosted interfaces.

What I Built

I engineered a full-stack, multi-tier calculator application featuring a Python Command-Line Interface (CLI), a desktop Graphical User Interface (GUI) built with Tkinter, and a modern web interface. The project delivers robust mathematical processing, dynamic layout geometry scaling, and input validation across all three distribution channels.

Problem

Beginner applications frequently couple mathematical execution directly with visual presentation, resulting in fragile code that breaks easily on invalid user input or window resizes. Additionally, desktop-only scripts limit access for prospective employers or users who want an instant, zero-install web demonstration.

Solution

The application separates core calculation handling into independent UI tiers. The desktop tier (gui.py) leverages Tkinter’s grid geometry manager with dynamic row/column weights, while the web tier (index.html, style.css, script.js) uses CSS Grid and JavaScript exception boundaries—delivering a seamless, live web app hosted directly on GitHub Pages.

Design Decisions

Tradeoffs

Challenges

What I’d Improve

Demo

Live Project Demo

Source Code

GitHub Repository