How I Use Claude AI to Build Python Windows Desktop Apps Faster — My Exact Master Prompt

By Maheby Hasan • April 23, 2026

 


How I Use Claude AI to Build Python Windows Desktop Apps Faster — My Exact Master Prompt

If you've ever tried building a Windows desktop app with Python, you know the drill.

You pick CustomTkinter. You figure out the folder structure. You set up PyInstaller. You write the Inno Setup script. You Google the same things you Googled last time.

And if you're using Claude AI to help — you spend the first 20 minutes just explaining your setup.

After building multiple desktop tools for my own workflow, I got tired of starting from zero every single time. So I built a solution.


The Problem With Using Claude for Python Desktop Development

Claude is a powerful coding assistant. But it has no memory between sessions.

Every new project, you start fresh. And without proper instructions, Claude gives you:

  • Tkinter instead of CustomTkinter
  • Procedural code instead of OOP class-based architecture
  • No virtual environment setup
  • No PyInstaller configuration
  • No Inno Setup installer script
  • Partial code with "..." placeholders
  • Missing requirements.txt

The result is inconsistent, incomplete output that takes more time to fix than to write yourself.


The Solution — A Master Prompt

A Master Prompt is a single document that contains your complete development context — your stack, your architecture, your UI preferences, and your optional features.

You paste it into Claude once per project. Claude has everything it needs. Development starts immediately.

After refining this workflow across multiple Windows tools, I packaged it into a ready-to-use document.


What's Inside the Master Prompt

✅ Complete Technology Stack — Pre-configured

No more explaining. The prompt defines everything upfront:

  • Language: Python 3.x (3.10+ recommended)
  • UI Framework: CustomTkinter (Modern Flat Design)
  • Packaging: PyInstaller (.exe binary)
  • Installer: Inno Setup (.exe installer with uninstaller)
  • IDE: VS Code
  • OS Target: Windows 10 / 11 (64-bit)
  • Environment: venv (separate per project)

✅ UI Requirements — Fully Customizable

Every project looks different. The prompt lets you define:

  • Color theme: Light / Dark / System
  • Primary color: Any hex code
  • Font: Segoe UI (Windows default)
  • Window size: e.g. 1000×650 — resizable or fixed
  • Language: English / Bengali / Both
  • Responsive layout: Yes (minimum size enforced)

✅ 16 Optional Features — YES/NO Toggles

Data & Storage:

  • SQLite Database (built-in, zero install)
  • JSON Config File (settings persistence)
  • CSV / Excel Export (openpyxl)
  • PDF Export (reportlab)

UI / UX Extras:

  • Dark Mode Toggle
  • Splash Screen
  • Custom App Icon (.ico)
  • System Tray Icon
  • Multi-language / i18n
  • Keyboard Shortcuts
  • File Drag & Drop

System Integration:

  • Auto-start with Windows
  • Auto-update Checker
  • Print Support
  • Logging (error log file)

Network & External:

  • Network / API Calls (requests)
  • Charts / Graphs (matplotlib)
  • Image Processing (Pillow)

You mark YES or NO. Claude implements only what you need.

✅ Non-Negotiable Code Rules — Enforced

The prompt tells Claude:

  • Never deliver partial code or "..." snippets
  • Always use OOP class-based architecture
  • Always follow MVC/MVP pattern where applicable
  • Always include docstrings on every class and function
  • Always include requirements.txt with pinned versions
  • Never use deprecated APIs
  • Always handle errors with try/except in critical sections
  • Final .exe must have no console window
  • App icon must be in .ico format
  • Installer must always include an uninstaller

✅ 6-Step Development Process — Enforced

Step 1 — Pre-Development Plan Architecture, screens, database schema, library list — before any code.

Step 2 — Project Structure Exact folder layout:


SoftwareName/
├── main.py
├── requirements.txt
├── .gitignore
├── README.md
├── assets/
│   ├── icons/
│   └── fonts/
├── views/
├── controllers/
├── models/
├── services/
├── utils/
├── config/
└── installer/
    └── setup.iss

Step 3 — Coding Order 10 files delivered in exact sequence.

Step 4 — Inno Setup Installer Script Complete .iss script with uninstaller, Start Menu entry, desktop shortcut, and 64-bit mode.

Step 5 — Build Guide Step-by-step:

venv → pip install → PyInstaller → 
dist/ verify → Inno Setup compile → 
installer test

Step 6 — Quality Checklist 10-point verification before delivery.


How It Works — Step by Step

Step 1 — Open the document

Step 2 — Edit 2 sections only:

  • Your software name and description
  • Your features list

Step 3 — Fill in UI preferences:

  • Theme, color, window size, language

Step 4 — Toggle optional features YES/NO

Step 5 — Copy the full prompt

Step 6 — Paste into Claude

Step 7 — Get a complete development plan, then full production code


Real Example — Invoice Generator App

Here's how the editable section looks when filled in:

My Software Description:
  An Invoice Generator that lets users 
  create client invoices, export them 
  as PDF, and browse invoice history.

Features List:
  1. Client info input (name, address, phone)
  2. Product/Service list with quantity & price
  3. Automatic total and VAT calculation
  4. PDF invoice export
  5. Invoice history and search

UI Preferences:
  Theme: Light
  Primary color: #2196F3
  Window size: 1000x650 (resizable)
  Language: English

Optional Features — YES:
  SQLite Database    : YES
  PDF Export             : YES
  CSV/Excel Export   : YES
  Custom App Icon     : YES
  Dark Mode Toggle   : YES
  Logging                    : YES
  Everything else        : NO

Paste this into Claude with the full Master Prompt — and Claude builds your entire Windows app, in order, with complete code.


Who This Is For

This Master Prompt is built for:

  • Python developers building Windows tools, utilities, or business software
  • Developers using AI who want consistent, structured output every time
  • Anyone who wants a proper .exe installer — not just a Python script
  • Devs tired of restructuring every new project from scratch

What You Get

  • Windows_Master_Prompt_EN.docx — formatted prompt document
  • Windows_Master_Prompt_EN.pdf — PDF version
  • 16 optional features with YES/NO toggles
  • UI requirements section
  • 6-step enforced development process
  • Complete Inno Setup installer details
  • Library quick reference table (all pip commands)
  • Real example (Invoice Generator — fully filled in)
  • Quality checklist (10 items)

Works with: Claude (recommended) · ChatGPT · Gemini


Get the Master Prompt

I'm selling this for $9 on Gumroad.

👉 Windows Desktop App Master Prompt — Get it here

Instant download. 30-day money back guarantee.


Final Thoughts

Python is powerful. CustomTkinter makes beautiful Windows apps. PyInstaller and Inno Setup turn your script into a professional installer.

But setting all of this up correctly — every single project — takes time you don't have.

A well-structured Master Prompt is the difference between spending 2 hours on setup — and starting actual development in 5 minutes.

If you're building Python Windows apps with Claude, this prompt will save you hours on every single project.


Built by Maheby Hasan — Android & WordPress Developer, founder of The Exceptional Technology.