File: todo.py

package info (click to toggle)
pytermgui 7.7.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,888 kB
  • sloc: python: 12,931; makefile: 40; sh: 37
file content (18 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pytermgui as ptg

with ptg.WindowManager() as manager:
    window = ptg.Window(
        "[error]Whoops!",
        "",
        "[error-2]We haven't gotten around to doing this yet.",
        "",
        (
            "[surface+2]If you see this in the wild, please raise an issue about it,\n"
            + " preferably including a screenshot of this window and its general context.\n\n"
            + "Thanks for reading the docs and ([italic]hopefully[/italic]) using the project!"
        ),
    )

    window.styles.border_focused__corner_focused = "error"
    manager.layout.add_slot()
    manager.add(window)