我试图读取一个矩形的轮廓颜色,我得到以下错误
AttributeError:没有颜色类型“\u NoneColor”的.rgb属性
我在不同的幻灯片中使用相同的代码,结果正如预期的那样。我肯定有一些不正确的形状,但是,我不能准确地确定问题。。。有人能帮忙吗?你知道吗
对于幻灯片3中的形状。形状:
if shape.name[:9] == 'Rectangle':
shape_color = shape.fill.fore_color.rgb
line_color = shape.line.color.rgb
Tags:
颜色类型和填充类型有很多可能的组合。你需要从一开始就开始,一路走下去,一边询问类型。你知道吗
相关问题 更多 >
编程相关推荐