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

Method get_text

remi/gui.py:2195–2202  ·  view source on GitHub ↗

Returns: str: The text content of the Widget. You can set the text content with set_text(text).

(self)

Source from the content-addressed store, hash-verified

2193 self.add_child('text', escape(text, quote=False))
2194
2195 def get_text(self):
2196 """
2197 Returns:
2198 str: The text content of the Widget. You can set the text content with set_text(text).
2199 """
2200 if 'text' not in self.children.keys():
2201 return ''
2202 return unescape(self.get_child('text'))
2203
2204
2205class Button(Widget, _MixinTextualWidget):

Callers 1

textMethod · 0.95

Calls 1

get_childMethod · 0.80

Tested by

no test coverage detected