Quizler is a Python-based quiz application built using the Tkinter
library for the graphical user interface. It presents true/false quiz questions and keeps track of the user's score. The app dynamically loads quiz questions and displays them one by one, allowing users to answer by clicking the "True" or "False" buttons.
- GUI built with Tkinter
- True/False quiz questions
- Displays the current score as the quiz progresses
- Provides feedback on whether the answer was correct or not
- Gracefully handles the end of the quiz by disabling the answer buttons and showing a completion message
Before running the project, make sure you have Python installed on your machine. You will also need the following libraries:
tkinter
: Python's standard GUI libraryhtml
: Standard library to handle HTML encoding (already available in Python)
-
Clone this repository to your local machine:
git clone https://github.com/your-username/quizler-app.git
-
Navigate to the project directory:
cd quizler-app
-
Install dependencies (if needed):
-
For
tkinter
: Usually comes with Python, but if not installed, you can install it using the following command for Linux:sudo apt-get install python3-tk
-
For Windows,
tkinter
should be bundled with your Python installation.
-
-
Ensure the required directories and files exist:
- Images: Ensure that there is a directory named
images
containing the following:true.png
: Image for the true buttonfalse.png
: Image for the false button
- Images: Ensure that there is a directory named
-
Run the application:
python main.py
quizler-app/
│
├── images/
│ ├── true.png # Image for the True button
│ └── false.png # Image for the False button
│
├── data.py # Contains question data (replace with API if needed)
├── question_model.py # Defines the Question class
├── quiz_brain.py # Handles quiz logic (checking answers, loading next question)
├── ui.py # Handles the user interface with Tkinter
└── main.py # Runs the application