Returns: str: The text content of the Widget. You can set the text content with set_text(text).
(self)
| 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 | |
| 2205 | class Button(Widget, _MixinTextualWidget): |