Skip to content

BLOPA1/QR-Generador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Generator (Windows)

Simple desktop app: enter content (number / URL / phone / WhatsApp / image / text) → generate the QR → save it as PNG.

Features

  • QR preview.
  • Supports QR codes for numbers, URLs, phone numbers, WhatsApp, images, and plain text (select the type in the app).
    • Note: to “show an image” when scanning, the QR must contain a URL. Prefer a public http/https image URL. file://... works only on the same PC.
  • Option to add a footer image (optional) or choose an image at generation time.
  • Installer with Spanish / English language selection.

Requirements

  • Windows
  • Python 3.11+ (this workspace already uses a venv in .venv/)

Run in development mode

  1. Install dependencies:

    ./.venv/Scripts/python.exe -m pip install -r requirements.txt
  2. Run the app:

    ./.venv/Scripts/python.exe qrgen.py

App logo

Footer image (in the app)

In the window you will see:

  • Add footer image: enables/disables the footer image (not mandatory).
  • Choose…: select any image (PNG/JPG/JPEG/BMP/GIF) as footer.
  • Default: uses the image included with the project (Logo pausa.jpeg) if present.
  • Remove: generates the QR without a footer image (but keeps the option enabled).

Tip: if you want to change the default logo for everyone, replace the file Logo pausa.jpeg with another image using the exact same name, then rebuild.

App language (Spanish / English)

  • The installer lets you choose the language.
  • The app uses that language on first launch.
  • You can later change it from the Language / Idioma menu inside the app.

Generate an EXE

Run:

powershell -ExecutionPolicy Bypass -File .\build.ps1 -Mode onedir

Output:

dist\QR-Generador\QR-Generador.exe

Alternative (single file)

This usually takes longer to start:

powershell -ExecutionPolicy Bypass -File .\build.ps1 -Mode onefile

Output:

dist\QR-Generador.exe

Build everything (EXE + installer) with one command

If you made changes and want to generate everything at once:

powershell -ExecutionPolicy Bypass -File .\build-all.ps1

This builds:

  • EXE (PyInstaller, folder mode) → dist\QR-Generador\QR-Generador.exe
  • Installer (Inno Setup) → installer\Output\QR-Generador-Setup.exe

Useful options

  • EXE only:

    powershell -ExecutionPolicy Bypass -File .\build-all.ps1 -AppOnly -Mode onedir
  • Installer only (if the EXE already exists in dist):

    powershell -ExecutionPolicy Bypass -File .\build-all.ps1 -InstallerOnly

Create installer (optional)

If you want a classic “Next, Next, Finish” installer, the simplest option is Inno Setup.

  1. Generate the build (folder mode) if it doesn’t exist yet:

    powershell -ExecutionPolicy Bypass -File .\build.ps1 -Mode onedir
  2. Install Inno Setup (once, on the PC where you will build the installer).

  3. Option A (automatic):

    powershell -ExecutionPolicy Bypass -File .\installer\build-installer.ps1
  4. Option B (manual): open installer\qrgen.iss with Inno Setup and click Compile.

Output:

installer\Output\QR-Generador-Setup.exe

Installer language (Spanish / English)

The installer shows a language selector at startup. To change or adjust texts, edit installer\qrgen.iss (section [CustomMessages]).

Use on another PC

Copy the installer file and run it:

installer\Output\QR-Generador-Setup.exe

This creates the program folder and desktop shortcut, and the app is ready to use.

About

Simple desktop app: enter content (number / URL / phone / WhatsApp / text) → generate the QR → save it as PNG.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors