Quizzler Trivia Desktop App
Tkinter GUI Quiz Engine with Live OpenTDB API & Offline Fallback
Fetches live boolean trivia from OpenTDB with HTML entity decoding, canvas flash feedback, and anti-spam button locking.
An interactive True/False trivia desktop application built with Python, Tkinter, and the Open Trivia Database (OpenTDB) API. Unescapes HTML entities cleanly, provides 1-second green/red visual canvas feedback, prevents rapid double-clicks during transitions, and falls back gracefully if OpenTDB hits rate limits.
Live public trivia APIs frequently enforce strict HTTP 429 rate limits and return raw HTML-escaped entities like " inside question strings.
Small desktop GUI utilities still benefit from API resilience, fallback question sets, and clean UI state locking.
Engineering Objectives
System Architecture
Model-View separation uniting QuizBrain state engine with QuizInterface Tkinter canvas controller.
Offline Fallback & Anti-Spam Lock
Automatically serves bundled backup questions on API timeouts/429s and locks button events across transition frames.
Core & Backend Implementation
- Requests client hitting OpenTDB boolean endpoint with fallback data.
- QuizBrain class managing question progression, answer validation, and score tallies.
Client & Interface Layer
- Tkinter canvas with dynamic green/red flash feedback and live top-right score counter.
Data & Schema Design
Lightweight QuestionModel instances holding unescaped question strings and boolean answers.
Authentication & Security Controls
- Input locking prevents UI race states during transitions.
Engineering Challenges & Technical Decisions
Key Challenges Solved
Trade-Off Decisions
Testing & Verification Methodology
- Verified clean HTML entity unescaping and end-of-deck state lockdown.