How ajaykumar-ak10/qr-generator works
This small application generates QR codes from validated website URLs through either a Tkinter desktop interface or a separate command-line script. The desktop workflow supports size and color selection, on-screen preview, PNG download, clearing, About information, and status messages. Generation and file handling are implemented directly in the GUI module; the CLI independently generates and saves a default QR code. The graph reflects the sampled source; README-described GUI actions are included where their wiring is visible in that source.
Main entry points: qr_gui.py QR encoder · qr_generator.py CLI QR creation
Components 16
Desktop app
- GUI controls
qr_gui.py - URL validation
qr_gui.py - Color and size
qr_gui.py - QR preview
qr_gui.py - PNG download
qr_gui.py - Save dialog
- Clear action
qr_gui.py - About and status
qr_gui.py
QR generation
- QR encoder
qr_gui.py - qrcode library
- QR PNG file
qr_gui.py
Command line
- CLI prompt
qr_generator.py - CLI validation
qr_generator.py - CLI QR creation
qr_generator.py - CLI PNG output
qr_generator.py
Other components
- User
Connections 16
- User → GUI controls: uses
README.md - GUI controls → URL validation: generates via
qr_gui.py - URL validation → Color and size: accepts valid URL
qr_gui.py - Color and size → QR encoder: configures
qr_gui.py - QR encoder → qrcode library: creates code with
qr_gui.py - QR encoder → QR PNG file: saves
qr_gui.py - QR encoder → QR preview: displays resized image
qr_gui.py - User → PNG download: requests
README.md - PNG download → QR PNG file: opens and saves
qr_gui.py - PNG download → Save dialog: chooses destination
qr_gui.py - User → Clear action: requests
README.md - User → About and status: views
README.md - CLI prompt → CLI validation: checks URL
qr_generator.py - CLI validation → CLI QR creation: creates code with
qr_generator.py - CLI QR creation → qrcode library: creates code with
qr_generator.py - CLI QR creation → CLI PNG output: saves PNG
qr_generator.py