Skip to content

Commit

Permalink
Create t.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Dec 13, 2023
1 parent 0e0138d commit abb2023
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions part2_Use-Python-in-Office/ch08_work-with-PPT/t.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit abb2023

Please sign in to comment.