How to use the pywayland.protocol.wayland.Shm function in pywayland

To help you get started, we’ve selected a few pywayland examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github realitix / vulkan / example / contribs / example_wayland.py View on Github external
def registry_global_handler(registry, id_, interface, version):
    window = registry.user_data
    if interface == 'wl_compositor':
        window['compositor'] = registry.bind(id_, Compositor, version)
    elif interface == 'wl_shell':
        window['shell'] = registry.bind(id_, Shell, version)
    elif interface == 'wl_shm':
        window['shm'] = registry.bind(id_, Shm, version)
        window['shm'].dispatcher['format'] = shm_format_handler

pywayland

Python bindings for the libwayland library written in pure Python

Apache-2.0
Latest version published 3 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages