Last active
August 15, 2022 14:58
-
-
Save Mark-McCracken/4d1b6c9aad8ca93f54b413ea61c4ecd4 to your computer and use it in GitHub Desktop.
powerpoint_approx_structure.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports etc... | |
book = load_workbook(path.join("questions", "questions.xlsx"), read_only=True) | |
// ready to read out excel content | |
prs = Presentation("template.pptx") | |
slide_layouts = prs.slide_master.slide_layouts | |
// implementation functions... | |
prs.slides.add_slide(slide_layouts.get_by_name("WELCOME")) | |
prs.slides.add_slide(slide_layouts.get_by_name("RULES")) | |
create_rounds_preview() | |
create_worded_round(1) | |
create_worded_round(2) | |
create_worded_round(3) | |
create_picture_round() | |
create_wipeout_round() | |
create_music_round() | |
prs.slides.add_slide(slide_layouts.get_by_name("COUNT_SCORES")) | |
prs.slides.add_slide(slide_layouts.get_by_name("THANK_YOU")) | |
prs.save("output.pptx") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment