- Introduction
- Features
- Installation
- Usage
- Project_Screenshots
- Project Structure
- Dependencies
- Contributor
Welcome to the Trivia Quiz Application! This project is a fun and interactive quiz application that leverages a trivia API to fetch questions and provides a user-friendly interface using tkinter
. It also integrates email functionality via smtplib
to send quiz results. The project is built using Object-Oriented Programming (OOP) principles to ensure modularity and maintainability.
- Fetch trivia questions from an API.
- Interactive GUI built with
tkinter
. - Email quiz results using
smtplib
. - OOP design for better code organization and extensibility.
To get a local copy up and running, follow these simple steps:
- Install dependencies:
pip install -r requirements.txt
To start the application, run the following command:
python main.py
A GUI window will open, allowing you to start the quiz, answer questions, and submit your results via email.
quiz-app/
│
├── images/ # Contains images used in the GUI
│ ├── false.png
│ └── true.png
├── main.py # Entry point of the application
├── ui.py # Contains the Tkinter GUI class
├── quiz_brain.py # Contains logic of quiz
├── question_model.py # Contains Question class
├── data.py # Contains the api request
├── players.csv # Stores the user data in csv file
│
└── requirements.txt # List of dependencies
tkinter
: For the GUI.smtplib
: For sending emails.requests
: For making API requests.- Trivia API: Used to fetch trivia questions (e.g., Open Trivia Database).
You can install all dependencies using:
pip install -r requirements.txt
Sahuf Shaikh |