Skip to content

sahuf2003/QUIZ-GUI-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz Application

gif



Table of Contents

Introduction

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.

Features

  • Fetch trivia questions from an API.
  • Interactive GUI built with tkinter.
  • Email quiz results using smtplib.
  • OOP design for better code organization and extensibility.

Installation

To get a local copy up and running, follow these simple steps:

  1. Install dependencies:
    pip install -r requirements.txt

Usage

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.

Project Screenshots

gif


gif

Project Structure

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

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

Contributor

Sahuf Shaikh
Sahuf Shaikh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages