(self, ims, txts, links, width=512)
| 43 | self.doc.add(self.t) |
| 44 | |
| 45 | def add_images(self, ims, txts, links, width=512): |
| 46 | self.add_table() |
| 47 | with self.t: |
| 48 | with tr(): |
| 49 | for im, txt, link in zip(ims, txts, links): |
| 50 | with td(style="word-wrap: break-word;", halign="center", valign="top"): |
| 51 | with p(): |
| 52 | with a(href=os.path.join('images', link)): |
| 53 | img(style="width:%dpx" % (width), src=os.path.join('images', im)) |
| 54 | br() |
| 55 | p(txt.encode('utf-8')) |
| 56 | |
| 57 | def save(self): |
| 58 | html_file = os.path.join(self.web_dir, self.html_name) |
no test coverage detected