File: generate_title.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-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pytermgui import Label, Container, boxes

art = """\
[bold 157] ____      [60] _____                  [210]  ____ _   _ ___ [/]
[bold 157]|  _ \ _   [60]|_   _|__ _ __ _ __ ___ [210] / ___| | | |_ _|[/]
[bold 157]| |_) | | | |[60]| |/ _ \ '__| '_ ` _ .[210]| |  _| | | || | [/]
[bold 157]|  __/| |_| |[60]| |  __/ |  | | | | | [210]| |_| | |_| || | [/]
[bold 157]|_|    \__, |[60]|_|\___|_|  |_| |_| |_|[210]\____|\___/|___|[/]
 ====== [bold 157]|___/[/fg] ======================================= [/]
"""

Container.set_char("border", [""] * 4)
root = Container()
for line in art.splitlines():
    root += Label(line)

root.center()
root.print()