MCPcopy Create free account
hub / github.com/Image-Py/imagepy / add_mark

Method add_mark

imagepy/core/myvi/manager.py:207–212  ·  view source on GitHub ↗
(self, name, vts, ids, o, h, cs=(0,0,1))

Source from the content-addressed store, hash-verified

205 return surf
206
207 def add_mark(self, name, vts, ids, o, h, cs=(0,0,1)):
208 mark = MarkText(vts, ids, o, h, cs)
209 if not self.ctx is None:
210 mark.on_ctx(self.ctx, self.prog_txt)
211 self.objs[name] = mark
212 return mark
213
214
215 def get_obj(self, key):

Callers

nothing calls this directly

Calls 2

on_ctxMethod · 0.95
MarkTextClass · 0.85

Tested by

no test coverage detected