diff --git a/part2_Use-Python-in-Office/ch08_work-with-PPT/t.py b/part2_Use-Python-in-Office/ch08_work-with-PPT/t.py new file mode 100644 index 0000000..b05ce2d --- /dev/null +++ b/part2_Use-Python-in-Office/ch08_work-with-PPT/t.py @@ -0,0 +1,9 @@ +from pptx import Presentation +from pptx.enum.chart import XL_CHART_TYPE +ppt = Presentation() + +styles = ppt.styles +chart_styles = [s for s in styles if s.type == XL_CHART_TYPE.__members__] + +for style in chart_styles: + print(style.name) \ No newline at end of file