From 8996aaddc6534486e0c8f0bff3ee559cabf16e38 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 1 Nov 2020 21:39:34 +0800 Subject: The mate has deleted the bland target slide of hyperlink in pptx and he asked me to write a script to add it back. --- question-pptx/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'question-pptx/main.py') diff --git a/question-pptx/main.py b/question-pptx/main.py index 6c4e9bb..ee278d4 100644 --- a/question-pptx/main.py +++ b/question-pptx/main.py @@ -64,7 +64,7 @@ presentation: pptx.presentation.Presentation = pptx.Presentation() buttons: Iterable[pptx.shapes.autoshape.Shape] = [] for question in questions: - slide: pptx.slide.Slide = presentation.slides.add_slide( + slide: pptx.slide.Slide = c.add_slide( presentation.slide_layouts[6]) title = slide.shapes.add_textbox(Pt(20), Pt(40), Pt(680), Pt(50)) -- cgit v1.2.3