Skip to content

_Framework.Layer (runtime)

Live 11 — Live Object Model & framework reference (descriptions and signatures).

Functions

nop(*a, **k)

Classes

class CompoundLayer(LayerBase, CompoundResource)

Properties

  • first
  • owner
  • priority
  • second

Methods

__init__(self, first_resource=None, second_resource=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

_get_priority(self)
_set_priority(self, priority)
get_owner(self)
grab(self, client, *a, **k)
release(self, client)

class CompoundResource(Resource)

Properties

  • first
  • owner
  • second

Methods

__init__(self, first_resource=None, second_resource=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

get_owner(self)
grab(self, client, *a, **k)
release(self, client)

class ControlElementClient

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

set_control_element(self, control_element, grabbed)

class Disconnectable

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

disconnect(self)

class ExclusiveResource(Resource)

Properties

  • owner

Methods

__init__(self, on_received_callback=None, on_lost_callback=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

get_owner(self)
grab(self, client, *a, **k)
on_lost(self, client)
on_received(self, client, *a, **k)
release(self, client)

class Layer(LayerBase, ExclusiveResource)

Properties

  • owner
  • priority

Methods

__init__(self, priority=None, **controls)

Initialize self. See help(type(self)) for accurate signature.

_get_control_client(self, client)
_get_priority(self)
_set_priority(self, priority)
get_owner(self)
grab(self, client, *a, **k)
on_lost(self, client)
on_received(self, client, *a, **k)
release(self, client)

class LayerBase

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class LayerClient(ControlElementClient)

Methods

__init__(self, layer=None, layer_client=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

set_control_element(self, control_element, grabbed)

class LayerError(Exception)

Common base class for all non-exit exceptions.

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

with_traceback(...)

Exception.with_traceback(tb) -- set self.traceback to tb and return self.

Attributes

  • args = <attribute 'args' of 'BaseException' objects>

class SimpleLayerOwner(Disconnectable)

Methods

__init__(self, layer=None)

Initialize self. See help(type(self)) for accurate signature.

disconnect(self)

class UnhandledControlError(LayerError)

Common base class for all non-exit exceptions.

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

with_traceback(...)

Exception.with_traceback(tb) -- set self.traceback to tb and return self.

Attributes

  • args = <attribute 'args' of 'BaseException' objects>

class repeat

repeat(object [,times]) -> create an iterator which returns the object for the specified number of times. If not specified, returns the object endlessly.

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.