Quizzler-Python
$1.50
https://schema.org/InStock
usd
Prashant Gohel
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:
- You can adjust amount if you want more or less questions. And type also.
Add to wishlist