MCPcopy Create free account
hub / github.com/EasyIME/PIME / addButton

Method addButton

python/textService.py:196–200  ·  view source on GitHub ↗
(self, button_id, **kwargs)

Source from the content-addressed store, hash-verified

194 @toggled: is the button toggled, only valid if type is "toggle" (optional)
195 """
196 def addButton(self, button_id, **kwargs):
197 buttons = self.currentReply.setdefault("addButton", [])
198 info = kwargs
199 info["id"] = button_id
200 buttons.append(info)
201
202 def removeButton(self, button_id):
203 buttons = self.currentReply.setdefault("removeButton", [])

Callers 7

onActivateMethod · 0.80
onActivateMethod · 0.80
onActivateMethod · 0.80
onActivateMethod · 0.80
onActivateMethod · 0.80
addLangButtonsMethod · 0.80
updateLanguageButtonsMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected