kle-py
Key
Bases: object
object
Key information.
color
Keycap CSS color.
str
labels
12 Labels.
Index to position mapping is displayed below.
List[Label]
List
Label
default_text_color
Default CSS text color.
Only used to optimize the KLE JSON size.
default_text_size
Default text size.
Union[int, float]
Union
int
float
x
X position of raised primary shape in key units.
y
Y position of raised primary shape in key units.
width
Width of raised primary shape in key units.
height
Height of raised primary shape in key units.
x2
X position offset of the lowered secondary shape in key units.
y2
Y position offset of lowered secondary shape in key units.
width2
Width of lowered secondary shape in key units.
height2
Height of lowered secondary shape in key units.
rotation_x
X position of rotation origin in key units.
rotation_y
Y position of rotation origin in key units.
rotation_angle
Rotation angle in degrees.
is_ghosted
Whether the key is rendered partially transparent.
bool
is_stepped
Whether the key is stepped.
is_homing
Whether the key is a homing key.
is_decal
Whether the key is purely decorative.
profile_and_row
Keycap profile and row.
switch
Switch information.
Switch