MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / set_comment

Method set_comment

scratchattach/editor/block.py:109–116  ·  view source on GitHub ↗

Attach a comment and add it to the sprite.

(self, _comment: comment.Comment)

Source from the content-addressed store, hash-verified

107 return self
108
109 def set_comment(self, _comment: comment.Comment) -> Self:
110 """
111 Attach a comment and add it to the sprite.
112 """
113 _comment.block = self
114 self.sprite.add_comment(_comment)
115
116 return self
117
118 def check_toplevel(self):
119 """

Callers

nothing calls this directly

Calls 1

add_commentMethod · 0.80

Tested by

no test coverage detected