MCPcopy
hub / github.com/NVlabs/SPADE / add_images

Method add_images

util/html.py:45–55  ·  view source on GitHub ↗
(self, ims, txts, links, width=512)

Source from the content-addressed store, hash-verified

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)

Callers 3

html.pyFile · 0.80
save_imagesMethod · 0.80

Calls 2

add_tableMethod · 0.95
pFunction · 0.85

Tested by

no test coverage detected