$1.50

Quizzler-Python

I want this!

Quizzler-Python

$1.50

Quizzler - Python-Based Quiz Application


πŸ“Œ Overview

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.


🎯 Objective

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.


Tech Stack


Language: Python

GUI Framework: Tkinter

Data Source: Open-Trivia DB

Architecture: Object Oriented


🧩 Project Structure


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.

πŸ”Œ API Integration

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:

https://opentdb.com/api.php?amount=10&type=boolean

  • You can adjust amount if you want more or less questions. And type also.
I want this!
Powered by