![]() |
Display TTY
1
Customise your terminal's output
|
Static Public Member Functions | |
str | get_colour_string (colour_class, int colour_code) |
Union[int, None] | get_colour_code (colour_class, str colour_name) |
bool | check_if_colour_present (colour_class, str colour_name) |
list | get_all_colours (colour_class) |
@class LoggerColours @brief Class in charge of containing the colour names and id's that correspond to the allowed colours for the logger library.
Definition at line 11 of file colours.py.
|
static |
@brief Function in charge of checking if the colour is present in the list of allowed colours. @param colour_class The class containing the colour definitions. @param colour_name The name of the colour as a string. @return True if the colour is present, False otherwise.
Definition at line 100 of file colours.py.
|
static |
@brief Function in charge of returning the list of all the colours. @param colour_class The class containing the colour definitions. @return A list of all the colour names as strings.
Definition at line 118 of file colours.py.
|
static |
@brief Function in charge of returning the code of the colour to use. @param colour_class The class containing the colour definitions. @param colour_name The name of the colour as a string. @return The integer code of the colour, or None if the name is invalid.
Definition at line 83 of file colours.py.
|
static |
@brief Function in charge of returning the name of the colour to use. @param colour_class The class containing the colour definitions. @param colour_code The integer code of the colour. @return The name of the colour as a string, or an empty string if the code is invalid.
Definition at line 68 of file colours.py.
|
static |
Definition at line 21 of file colours.py.
|
static |
Definition at line 18 of file colours.py.
|
static |
Definition at line 37 of file colours.py.
|
static |
Definition at line 34 of file colours.py.
|
static |
Definition at line 36 of file colours.py.
|
static |
Definition at line 38 of file colours.py.
|
static |
Definition at line 46 of file colours.py.
|
static |
Definition at line 43 of file colours.py.
|
static |
Definition at line 44 of file colours.py.
|
static |
Definition at line 47 of file colours.py.
|
static |
Definition at line 49 of file colours.py.
|
static |
Definition at line 42 of file colours.py.
|
static |
Definition at line 45 of file colours.py.
|
static |
Definition at line 48 of file colours.py.
|
static |
Definition at line 41 of file colours.py.
|
static |
Definition at line 35 of file colours.py.
|
static |
Definition at line 39 of file colours.py.
|
static |
Definition at line 40 of file colours.py.
|
static |
Definition at line 20 of file colours.py.
|
static |
Definition at line 22 of file colours.py.
|
static |
Definition at line 30 of file colours.py.
|
static |
Definition at line 27 of file colours.py.
|
static |
Definition at line 28 of file colours.py.
|
static |
Definition at line 31 of file colours.py.
|
static |
Definition at line 33 of file colours.py.
|
static |
Definition at line 26 of file colours.py.
|
static |
Definition at line 29 of file colours.py.
|
static |
Definition at line 32 of file colours.py.
|
static |
Definition at line 25 of file colours.py.
|
static |
Definition at line 19 of file colours.py.
|
static |
Definition at line 53 of file colours.py.
|
static |
Definition at line 50 of file colours.py.
|
static |
Definition at line 52 of file colours.py.
|
static |
Definition at line 54 of file colours.py.
|
static |
Definition at line 62 of file colours.py.
|
static |
Definition at line 59 of file colours.py.
|
static |
Definition at line 60 of file colours.py.
|
static |
Definition at line 63 of file colours.py.
|
static |
Definition at line 65 of file colours.py.
|
static |
Definition at line 58 of file colours.py.
|
static |
Definition at line 61 of file colours.py.
|
static |
Definition at line 64 of file colours.py.
|
static |
Definition at line 57 of file colours.py.
|
static |
Definition at line 51 of file colours.py.
|
static |
Definition at line 55 of file colours.py.
|
static |
Definition at line 56 of file colours.py.
|
static |
Definition at line 23 of file colours.py.
|
static |
Definition at line 24 of file colours.py.