Quizzler is a Python-based GUI quiz application that fetches trivia questions from an online API and challenges the user with a series of True/False questions. Built using Tkinter, the app demonstrates effective use of object-oriented programming, API integration, and interactive UI design in Python.
The primary goal of Quizzler is to:
- Provide a user-friendly quiz experience.
- Integrate with the Open Trivia DB API for dynamic question fetching.
- Showcase modular and scalable code architecture using Python.
![]() |
![]() |
![]() |
![]() |
| Component | Technology |
|---|---|
| Language | Python |
| GUI Framework | Tkinter |
| Data Source | Open Trivia DB API |
| Architecture | Object-Oriented |
quizzler/ β βββ main.py # Main file to run the application βββ ui.py # Handles the GUI logic with Tkinter βββ quiz_brain.py # Core logic for question handling βββ data.py # Module for API integration βββ README.md # Documentation
main.py: Initializes the quiz and GUI components.ui.py: Manages GUI rendering and button interactions.quiz_brain.py: Controls quiz logic, answer checking, and scorekeeping.data.py: Fetches quiz questions from the Open Trivia DB API.
Questions are fetched using a GET request from the Open Trivia Database API. The app dynamically parses the JSON response and formats it for display.
Example API endpoint:
- You can adjust amount if you want more or less questions. And type also.
- Python 3.x installed on your machine
requestslibrary (install via pip)
git clone https://github.com/prashantgohel321/Quizzler-Python.git
cd quizzler
pip install requestspython main.py
- Clean and responsive UI with score tracking
- Instant feedback with visual cues (color-based)
- Real-time data fetching using API
- Modular code architecture for scalability



