Bindings for libxkbcommon using cffi
Project description
Python bindings for libxkbcommon using cffi.
Example usage:
>>> from xkbcommon import xkb >>> ctx = xkb.Context() >>> keymap = ctx.keymap_new_from_names() >>> state = keymap.state_new() >>> state.led_name_is_active("Caps Lock") False >>> capslock = 66 >>> str(state.update_key(capslock, xkb.XKB_KEY_DOWN)) 'StateComponent.XKB_STATE_MODS_DEPRESSED|XKB_STATE_MODS_LOCKED|XKB_STATE_MODS_EFFECTIVE|XKB_STATE_LEDS' >>> str(state.update_key(capslock, xkb.XKB_KEY_UP)) 'StateComponent.XKB_STATE_MODS_DEPRESSED' >>> state.led_name_is_active("Caps Lock") True
Version numbering
From release 0.5 onwards, the version numbering of this package will relate to releases of libxkbcommon as follows:
If the Python package version is major.minor[.patch] then it requires at least release major.minor.0 of libxkbcommon to build and run, and should work with any subsequent release. The patch version of the Python package is unrelated to the patch version of libxkbcommon.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xkbcommon-0.8.tar.gz
(28.1 kB
view details)
File details
Details for the file xkbcommon-0.8.tar.gz
.
File metadata
- Download URL: xkbcommon-0.8.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5be5973bf5b7525687a4df6c84789b421590d7f7cf92ae56f2aab177b795d516 |
|
MD5 | 642ea86cb6c975bdd8613f97d520c0fa |
|
BLAKE2b-256 | f7a5f0adce24c07856436cbe7673960935f70a7236820a98380729bed762d7cb |