Skip to content

Commit 8ec3de0

Browse files
committed
feat: add wrapper for pptx.Presentation and document usage in presentation.md
1 parent 4ad9013 commit 8ec3de0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pptx
2+
3+
import tppt
4+
5+
presentation = tppt.Presentation(pptx.Presentation())

docs/docs/usage/presentation.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
tppt.Presentation クラスは pttx.Presentation クラスのラッパーであり、簡単にラップできます。
2+
3+
```python
4+
--8<-- "codes/wrap_presentation.py"
5+
```
6+
7+
しかし、 tppt の本来の利用方法は builder です。
8+
builder を利用することで、スライドマスターとスライドレイアウトを型安全に利用しながらスライドを作成できます。
9+
10+
```python
11+
--8<-- "codes/quick_start.py"
12+
```

0 commit comments

Comments
 (0)