symbol_string Function

Defined in pyglet.window.key

symbol_string(symbol)

Return a string describing a key symbol.

Example:

>>> symbol_string(BACKSPACE)
'BACKSPACE'
Parameters:symbol (int) – Symbolic key constant.
Return type:str

Previous topic

motion_string Function

Next topic

user_key Function