libxyz :: ui :: colors :: Palette :: Class Palette

[hide private]
[frames] | no frames]

# Class Palette

source code

    object --+
             |
            Palette

Palette abstraction

Instance Methods | [hide private]

__init__(self, name, fg, bg, fg_attrs=None, mono=None, fg_high=None, bg_high=None) Init palette. | source code

_fg_get(self) | source code

_fg_set(self, fg) | source code

_bg_get(self) | source code

_bg_set(self, bg) | source code

_fg_attrs_get(self) | source code

_fg_attrs_set(self, attrs) | source code

_mono_get(self) | source code

_mono_set(self, mono) | source code

_fg_high_get(self) | source code

_fg_high_set(self, fg_high) | source code

_bg_high_get(self) | source code

_bg_high_set(self, bg_high) | source code

get_palette(self, display=const.DEFAULT_DISPLAY_DRIVER) Return urwid-compatible palette tuple | source code

set_fg(self, fg) Set foreground color | source code

set_bg(self, bg) Set background color | source code

copy(self) Return copy of Palette instance | source code

__call__(self, config) | source code

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Methods | [hide private]

convert(cls, config) Convert config text colors to tuple of instances | source code

Class Variables | [hide private]

| fg = `property(_fg_get, _fg_set)`
| bg = `property(_bg_get, _bg_set)`
| fg_attrs = `property(_fg_attrs_get, _fg_attrs_set)`
| mono = `property(_mono_get, _mono_set)`
| fg_high = `property(_fg_high_get, _fg_high_set)`
| bg_high = `property(_bg_high_get, _bg_high_set)`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, name, fg, bg, fg_attrs=None, mono=None, fg_high=None, bg_high=None)
(Constructor)

source code

Init palette.

Parameters:
  - `name` - Palette name
Overrides: object.__init__