TextGroup initializer. :param title: the group's title :param text: the group's text (string or object that may be rendered by Rich)
(
self,
title: str,
text: RenderableType,
)
| 277 | """ |
| 278 | |
| 279 | def __init__( |
| 280 | self, |
| 281 | title: str, |
| 282 | text: RenderableType, |
| 283 | ) -> None: |
| 284 | """TextGroup initializer. |
| 285 | |
| 286 | :param title: the group's title |
| 287 | :param text: the group's text (string or object that may be rendered by Rich) |
| 288 | """ |
| 289 | self.title = title |
| 290 | self.text = text |
| 291 | |
| 292 | def __cmd2_argparse_help__(self, formatter: Cmd2HelpFormatter) -> Group: |
| 293 | """Provide a representation of this object for a Cmd2HelpFormatter. |