I made a color palette in tkinter. I want to use that color palette in powerpoint. The color palette is not linking into the powerpoint.
from tkinter import *
from pptx.shapes.shapetree import SlideShapeFactory
from pptx import Presentation
from pptx.enum.shapes import MSO_SHAPE
from pptx.util import Inches, Pt
from pptx.enum.dml import MSO_THEME_COLOR
from pptx.dml.color import RGBColor
gui = Tk()
gui.configure(background="white")
gui.title("Color")
gui.geometry("215x485")
gui.grid_columnconfigure(4,minsize=50)
gui.wm_attributes("-topmost",1)
prs=Presentation()
prs.slide_width=Inches(16)
prs.slide_height=Inches(9)
blank_slide_layout=prs.slide_layouts[0]
slide=prs.slides.add_slide(blank_slide_layout)
shape = slide.shapes.add_shape(MSO_SHAPE.RECTANGLE,0,Inches(9/1.5),Inches(16),Inches(9/8.5))
shape.shadow.inherit=False
fill=shape.fill
fill.solid()
question from:
https://stackoverflow.com/questions/65908198/how-to-use-my-color-palette-made-in-tkinter-in-powerpoint 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…