| 1 | import pytermgui as ptg |
| 2 | |
| 3 | with ptg.WindowManager() as manager: |
| 4 | window = ptg.Window( |
| 5 | "[error]Whoops!", |
| 6 | "", |
| 7 | "[error-2]We haven't gotten around to doing this yet.", |
| 8 | "", |
| 9 | ( |
| 10 | "[surface+2]If you see this in the wild, please raise an issue about it,\n" |
| 11 | + " preferably including a screenshot of this window and its general context.\n\n" |
| 12 | + "Thanks for reading the docs and ([italic]hopefully[/italic]) using the project!" |
| 13 | ), |
| 14 | ) |
| 15 | |
| 16 | window.styles.border_focused__corner_focused = "error" |
| 17 | manager.layout.add_slot() |
| 18 | manager.add(window) |