Skip to content

Instantly share code, notes, and snippets.

@Mark-McCracken
Created August 15, 2022 14:57
Show Gist options
  • Select an option

  • Save Mark-McCracken/391cc5933903e4818c00457af601015b to your computer and use it in GitHub Desktop.

Select an option

Save Mark-McCracken/391cc5933903e4818c00457af601015b to your computer and use it in GitHub Desktop.
create_rounds_preview
ROUNDS = [name.upper() for name in book.sheetnames if name != "Wipeout"]
def create_rounds_preview():
rounds_slide = prs.slides.add_slide(slide_layouts.get_by_name("ROUNDS"))
Q1_idx, Q2_idx, Q3_idx, Q4_idx, Q5_idx, Q6_idx = 10, 11, 12, 13, 14, 15 # defined when creating the objects, can't change these easily
rounds_slide.placeholders[Q1_idx].text = f"1. {ROUNDS[0]} - 10 QUESTIONS"
rounds_slide.placeholders[Q2_idx].text = f"2. {ROUNDS[1]} - 10 QUESTIONS"
rounds_slide.placeholders[Q3_idx].text = f"3. {ROUNDS[2]} - 10 QUESTIONS"
rounds_slide.placeholders[Q4_idx].text = f"4. PICTURE ROUND - 9 QUESTIONS"
rounds_slide.placeholders[Q5_idx].text = f"5. WIPEOUT ROUND - 10 QUESTIONS"
rounds_slide.placeholders[Q6_idx].text = f"6. MUSIC ROUND - 10 QUESTIONS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment