aboutsummaryrefslogtreecommitdiff
path: root/question-pptx/main.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-01 21:39:34 +0800
committercrupest <crupest@outlook.com>2020-11-01 21:39:34 +0800
commit8996aaddc6534486e0c8f0bff3ee559cabf16e38 (patch)
treefbeeaca520e1a0feb933df72360d0be5b7fc12f1 /question-pptx/main.py
parent1e05f756960c0b0c7fbd5acc11e5c0ae29134dcc (diff)
downloadlife-8996aaddc6534486e0c8f0bff3ee559cabf16e38.tar.gz
life-8996aaddc6534486e0c8f0bff3ee559cabf16e38.tar.bz2
life-8996aaddc6534486e0c8f0bff3ee559cabf16e38.zip
The mate has deleted the bland target slide of hyperlink in pptx and he asked me to write a script to add it back.
Diffstat (limited to 'question-pptx/main.py')
-rw-r--r--question-pptx/main.py2
1 files changed, 1 insertions, 1 deletions
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))