Skip to content

Instantly share code, notes, and snippets.

@Mark-McCracken
Last active August 15, 2022 14:58
Show Gist options
  • Save Mark-McCracken/4d1b6c9aad8ca93f54b413ea61c4ecd4 to your computer and use it in GitHub Desktop.
Save Mark-McCracken/4d1b6c9aad8ca93f54b413ea61c4ecd4 to your computer and use it in GitHub Desktop.
powerpoint_approx_structure.py
// 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