MCPcopy Index your code
hub / github.com/rawpython/remi / add_command

Method add_command

editor/editor_widgets.py:105–110  ·  view source on GitHub ↗
(self, imagePath, callback, title)

Source from the content-addressed store, hash-verified

103 self.style['background-color'] = 'white'
104
105 def add_command(self, imagePath, callback, title):
106 icon = gui.Image(imagePath, height='90%', margin='0px 1px')
107 icon.style['outline'] = '1px solid lightgray'
108 icon.onclick.do(callback)
109 icon.attributes['title'] = title
110 self.append(icon)
111
112
113class ClassEventConnectorEditor(gui.ClassEventConnector):

Callers 1

mainMethod · 0.80

Calls 2

doMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected