X11 keysym data for Python, providing a mapping from keysym names (like 'XK_a', 'XK_Return') to their integer codes and vice versa. Current version: 1.2.0. Maintained as a small utility library, releases are infrequent.
pip install keysymdefVerified import paths — ran on the pinned version, not inferred.
Basic usage: treat the module as a dict mapping X11 keysym names to codes, and use keysym() for reverse lookup.
Use keysymdef.all_names() or list(keysymdef.keys()) to iterate keys.
Always use the canonical keysym name with 'XK_' prefix if applicable.
Upgrade to >=1.2.0 or implement your own reverse mapping.
Check via 'key in keysymdef' before using a keysym.
Use keysymdef.all_names() or list(keysymdef.keys()) to get a list of keys.
Verify the keysym name from X11 documentation. Use 'key in keysymdef' to check.
No dependency data recorded yet.