Math Problem Generator is a GUI-based application that allows users to create customizable worksheets with various math problems, including addition, subtraction, multiplication, and division. It's designed to be user-friendly and flexible, providing options to set the difficulty and number of problems.
- Customizable Problem Types: Generate problems for addition, subtraction, multiplication, and division.
- Adjustable Difficulty: Set the difficulty level for each type of problem by choosing the number of digits.
- Division Problem Customization: Independently set the difficulty for numerators and denominators in division problems.
- Worksheet Generation: Output math problems in a neatly formatted PDF file, arranged in a grid layout for easy printing and use.
- Python 3.x
- Tkinter (usually comes with Python)
- PyInstaller (for creating standalone executables)
-
Clone the repository or download the source code.
-
Navigate to the project directory.
cd path/to/MathProblemGenerator
pip install -r requirements.txt
python gui.py
- Start the Application: Run
gui.py
to open the user interface. - Set Problem Types and Difficulty: Choose the number and difficulty of each problem type using the provided spin boxes.
- Generate PDF: Click on 'Generate Worksheet' to create a PDF file with the math problems.
- Adjust Layout Settings: Use the 'Settings' button to open a dialog for adjusting layout parameters like problems per row and line height.
To build a standalone executable:
-
Install PyInstaller:
pip install pyinstaller
pyinstaller --windowed --onefile gui.py