Permalink
Browse files

Fixing bordercolor problem and adding JSON files

  • Loading branch information...
joereddington committed Jun 12, 2017
1 parent 4e4fde8 commit 27faccc256e9a2a18916692add27ce93252896b7
View
@@ -21,7 +21,7 @@
import sys
import linecache
print_exceptions = False
print_exceptions = True
IMAGE_WARNING = False
bordercolor = False
@@ -79,7 +79,7 @@ def __init__(self, filename,dest, saveimages=True):
def addfeedback(self,feedelement):
self.feedback.append(feedelement)
#This is a stub - this is to be used to manage the passing of messages to the user.
print feedelement
print "Feedback added {}".format(feedelement)
def getfeedback(self):
return self.feedback
@@ -175,18 +175,21 @@ def process_shape(self, shape):
self.links[co][
ro] = click_action.hyperlink.address
if shape.shape_type == MSO_SHAPE_TYPE.AUTO_SHAPE:
if bordercolor:
print "here"
print "X {}".format(shape.line.color.rgb)
self.colors[co][ro] = shape.line.color.rgb
print "there"
else:
if hasattr(shape.fill, 'fore_color'):
if (str(shape.fill.fore_color.type)
== "SCHEME (2)"):
#self.colors[co][ro] = ( 200, 0, 0)
pass
elif (str(shape.fill.fore_color.type) == "RGB (1)"):
# "We can use this color"
if bordercolor:
self.colors[co][
ro] = shape.line.color.rgb
else:
self.colors[co][
self.colors[co][
ro] = shape.fill.fore_color.rgb
else:
Oops, something went wrong.

0 comments on commit 27faccc

Please sign in to comment.