(self)
| 559 | return self._prompt_buffer_control |
| 560 | |
| 561 | def _create_bottom_toolbar(self): |
| 562 | self._quit_button = FormattedTextControl(self.EXIT_SESSION) |
| 563 | self._bottom_toolbar = FormattedTextControl(self.get_instructions()) |
| 564 | |
| 565 | return HSplit( |
| 566 | [ |
| 567 | Window( |
| 568 | self._bottom_toolbar, |
| 569 | wrap_lines=True, |
| 570 | dont_extend_height=True, |
| 571 | height=Dimension(min=1), |
| 572 | char=" ", |
| 573 | style="class:bottom-toolbar.text", |
| 574 | ), |
| 575 | Window( |
| 576 | self._quit_button, |
| 577 | wrap_lines=True, |
| 578 | dont_extend_height=True, |
| 579 | height=Dimension(min=1), |
| 580 | style="class:bottom-toolbar.text", |
| 581 | align=WindowAlign.RIGHT, |
| 582 | ), |
| 583 | ] |
| 584 | ) |
| 585 | |
| 586 | def update_bottom_toolbar(self, new_text): |
| 587 | self._bottom_toolbar.text = new_text |
no test coverage detected