Skip to content

Commit a99a257

Browse files
committed
refactor: rename color_text example to formatted_text and update function usage
1 parent c523ba6 commit a99a257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/color_text.py renamed to examples/formatted_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def main():
12-
def colorize(text: tppt.pptx.shape.text.Text) -> tppt.pptx.shape.text.Text:
12+
def formatted_text(text: tppt.pptx.shape.text.Text) -> tppt.pptx.shape.text.Text:
1313
run = text.text_frame().add_paragraph().add_run()
1414
run.text = "Hello, world!"
1515
font = run.font
@@ -27,7 +27,7 @@ def colorize(text: tppt.pptx.shape.text.Text) -> tppt.pptx.shape.text.Text:
2727
.builder()
2828
.text(
2929
# Pattern custom function
30-
colorize,
30+
formatted_text,
3131
left=(50, "pt"),
3232
top=(50, "pt"),
3333
width=(400, "pt"),

0 commit comments

Comments
 (0)