diff options
author | crupest <crupest@outlook.com> | 2020-11-01 21:39:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-01 21:39:34 +0800 |
commit | 9a7553406beef499f64d220131ac02465f524ee1 (patch) | |
tree | e332c12b0dcc2ad2445d444c2f28d92c03b0e8d5 /works/life/question-pptx/main.py | |
parent | 58e4c77b1d5f8241af91c55e1a8efaba3115dc6b (diff) | |
download | crupest-9a7553406beef499f64d220131ac02465f524ee1.tar.gz crupest-9a7553406beef499f64d220131ac02465f524ee1.tar.bz2 crupest-9a7553406beef499f64d220131ac02465f524ee1.zip |
import(life): 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 'works/life/question-pptx/main.py')
-rw-r--r-- | works/life/question-pptx/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/works/life/question-pptx/main.py b/works/life/question-pptx/main.py index 6c4e9bb..ee278d4 100644 --- a/works/life/question-pptx/main.py +++ b/works/life/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))
|