(self, ims, txts, links, width=400, height=0)
| 31 | self.doc.add(self.t) |
| 32 | |
| 33 | def add_images(self, ims, txts, links, width=400, height=0): |
| 34 | self.add_table() |
| 35 | with self.t: |
| 36 | with tr(): |
| 37 | for im, txt, link in zip(ims, txts, links): |
| 38 | with td(style="word-wrap: break-word;", halign="center", valign="top"): |
| 39 | with p(): |
| 40 | with a(href=os.path.join('images', link)): |
| 41 | if height != 0: |
| 42 | img(style="width:%dpx;height:%dpx" % (width, height), src=os.path.join('images', im)) |
| 43 | else: |
| 44 | img(style="width:%dpx" % (width), src=os.path.join('images', im)) |
| 45 | br() |
| 46 | p(txt) |
| 47 | |
| 48 | def save(self): |
| 49 | html_file = '%s/index.html' % self.web_dir |
no test coverage detected