Resource

class pywayland.server.resource.Resource(client, version=None, id=0)

A server-side Interface object for the client

Not created directly, created from the Interface object.

Parameters:
  • client (Client or cdata for wl_client *) – The client that the Resource is for
  • version (int) – The version to use for the Interface, uses current version if not specified
  • id (int) – The id for the item
add_destroy_listener(listener)

Add a listener for the destroy signal

Parameters:listener (Listener) – The listener object
destroy()

Destroy the Resource