keys
Module containing constants and helper functions for dealing with keys.
Functions
| Function |
Doc |
| get_ascii_from_char |
Function that converts ascii code to character |
| get_char_from_ascii |
Function that converts a character to an ascii code |
get_ascii_from_char
def get_ascii_from_char(char: str) -> int
Function that converts ascii code to character
Parameters
| Parameter |
Type |
Doc |
| char |
character |
character to convert to ascii |
Returns
| Return Variable |
Type |
Doc |
| ascii_code |
int |
Ascii code of character |
get_char_from_ascii
def get_char_from_ascii(key_num: int) -> Optional[str]
Function that converts a character to an ascii code
Parameters
| Parameter |
Type |
Doc |
| ascii_code |
int |
Ascii code of character |
Returns
| Return Variable |
Type |
Doc |
| char |
character |
character converted from ascii |