File: colors.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 (11 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import pytermgui as ptg


with ptg.YamlLoader() as loader, open("sandbox/common.yaml", "r") as config:
    namespace = loader.load(config)


with ptg.WindowManager() as manager:
    window = ptg.Window("hello")
    namespace.apply_to(window)
    manager += window