File: colors.py

package info (click to toggle)
python-urwid-utils 0.1.2.dev2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 124 kB
  • sloc: python: 445; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-

import re
import urwid
from urwid.display_common import _BASIC_COLORS as BASIC_COLORS
from urwid.display_common import _ATTRIBUTES as STYLES
from urwid_utils.util import get_const_identifiers

STYLES = list(zip([n.upper() for n in STYLES], STYLES))

color_const = get_const_identifiers(urwid.display_common, STYLES)
color_const['STYLES'] = STYLES
globals().update(color_const)
__all__ = list(color_const.keys())