MCPcopy Create free account
hub / github.com/ActiveState/code / createCSS

Method createCSS

recipes/Python/271246_pyAlbumpy/recipe-271246.py:136–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 img2.save(x)
135
136 def createCSS(self):
137 # Create CSS file
138 os.chdir(self.dirName)
139 self.CSSFile = "styles.css"
140 os.mkdir(self.slideName)
141 os.chdir(self.slideName)
142 fp = open(self.CSSFile,"w")
143 temp = """
144 body {font-family:Verdana, Arial, Trebuchet MS; font-size:10pt; margin-left:0px; margin-right:0px; margin-top:0px}
145 td {font-family:Verdana, Arial, Trebuchet MS; font-size:8pt}
146 h2 {font-family: Trebuchet MS, Arial, Verdana; background:#000000; color:#FFFFFF; padding:10px}
147 h4 {font-family: Trebuchet MS, Arial, Verdana; color:#CCCCCC}
148 a {font-family:Verdana, Arial, Trebuchet MS; font-size:10pt; font-weight:bold; text-decoration:underline}
149 a:visited{color:#FF0000}
150 a:hover {font-family:Verdana, Arial, Trebuchet MS; font-size:10pt; font-weight:bold; text-decoration:none; background:#CCCCFF;}
151 .no_go {font-family:Verdana, Arial, Trebuchet MS; font-size:10pt; color:#CCCCCC}
152 img {border:#000000 solid 1px}
153 """
154 fp.write(temp)
155 fp.close()
156
157 def createIndex(self):
158 # Create the index file

Callers 1

recipe-271246.pyFile · 0.80

Calls 5

chdirMethod · 0.80
mkdirMethod · 0.80
openFunction · 0.50
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected