|
Sudoku Showcase
|
Public Member Functions | |
| def | __init__ (self, str hex) |
| def | __repr__ (self) |
| The string-repr of an Hex-value. More... | |
| str | __str__ (self) |
| The string-repr of an Hex-value. More... | |
Static Public Attributes | |
| list | VALID_CHARS = [str(i) for i in range(10)] + ['a', 'b', 'c', 'd', 'e', 'f'] |
HEX Class.
Represents a validated hexadecimal color value.
The HEX class ensures that only properly formatted hex color strings (e.g. "#ffffff") are accepted. It validates structure and allowed characters on initialization and stores the value in a normalized, immutable form.
Provides string representations for use in UI rendering and configuration.
| def themes.HEX.__init__ | ( | self, | |
| str | hex | ||
| ) |
| def themes.HEX.__repr__ | ( | self | ) |
The string-repr of an Hex-value.
| str themes.HEX.__str__ | ( | self | ) |
The string-repr of an Hex-value.
|
static |