The Timetable Generator is a Python script that creates a weekly timetable based on user-defined subjects and their teaching hours. It uses the PySimpleGUI
library for the graphical user interface and the tabulate
library to format the timetable data into a table. The script assigns subjects randomly to predefined time slots across the weekdays.
- Prompts the user to input the number of subjects and their respective teaching hours.
- Randomly assigns subjects to time slots for each weekday.
- Displays the generated timetable in a GUI table format.
- Uses
PySimpleGUI
for user interaction and visualization.
- Python 3.x
- The following Python libraries:
PySimpleGUI
tabulate
You can install these libraries using pip
:
pip install PySimpleGUI tabulate