Skip to content

_Framework.SubjectSlot (runtime)

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

Functions

instance_decorator(decorator)

mixin(*args)

monkeypatch(target, name=None, override=False, doc=None)

monkeypatch_extend(target, name=None)

old_hasattr(obj, attr)

setup_subject(cls, listeners)

subject_add_event(cls, event_name_or_event)

subject_slot(events, *a, **k)

subject_slot_group(event, *a, **k)

wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',))

Classes

class CallableSlotMixin

Methods

__call__(self, *a, **k)

Call self as a function.

__init__(self, function=None, *a, **k)

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

class CallableSubjectSlotGroup(SubjectSlotGroup, CallableSlotMixin)

Methods

__call__(self, *a, **k)

Call self as a function.

__init__(self, listener=None, event=None, extra_kws=None, extra_args=None, *a, **k)

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

_listener_for_subject(self, identifier)
add_subject(self, subject, identifier=None)
disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
has_subject(self, subject)
register_disconnectable(self, slot)
register_slot(self, *a, **k)
register_slot_manager(self, *a, **k)
remove_subject(self, subject)
replace_subjects(self, subjects, identifiers=repeat(None))
unregister_disconnectable(self, slot)

Attributes

  • _extra_args = None
  • _extra_kws = None
  • listener = None

class CompoundDisconnectable(Disconnectable)

Methods

__init__(self, *a, **k)

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

disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
register_disconnectable(self, slot)
unregister_disconnectable(self, slot)

class Disconnectable

Methods

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

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

disconnect(self)

class MultiSubjectSlot(SlotManager, SubjectSlot)

Properties

  • is_connected
  • listener
  • subject

Methods

__init__(self, subject=None, listener=None, event=None, extra_kws=None, extra_args=None, *a, **k)

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

_check_subject_interface(self, subject)
_event_fired(self, *a, **k)
_get_listener(self)
_get_subject(self)
_set_listener(self, listener)
_set_subject(self, subject)
_update_nested_subject(self)
connect(self)
disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
register_disconnectable(self, slot)
register_slot(self, *a, **k)
register_slot_manager(self, *a, **k)
soft_disconnect(self)
unregister_disconnectable(self, slot)

Attributes

  • _extra_args = [] - Built-in mutable sequence.
  • _extra_kws = {} - dict() -> new empty dictionary

class NamedTuple

Methods

__init__(self, *others, **k)

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

Attributes

  • _eq_dict = <_Framework.Util.lazy_attribute object at 0x129d83b50>

class Signal

Properties

  • count

Methods

__call__(self, *a, **k)

Call self as a function.

__init__(self, combiner=<function default_combiner at 0x129dd59e0>, sender=None, *a, **k)

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

connect(self, slot, in_front=False, sender=None)
disconnect(self, slot)
disconnect_all(self)
is_connected(self, slot)

class SlotManager(CompoundDisconnectable)

Methods

__init__(self, *a, **k)

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

disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
register_disconnectable(self, slot)
register_slot(self, *a, **k)
register_slot_manager(self, *a, **k)
unregister_disconnectable(self, slot)

class Subject(Disconnectable)

Methods

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

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

disconnect(self)

class SubjectEvent(NamedTuple)

Methods

__init__(self, *others, **k)

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

signal(combiner=<function default_combiner at 0x129dd59e0>, sender=None, *a, **k)

Attributes

  • _eq_dict = <_Framework.Util.lazy_attribute object at 0x129d83b50>
  • doc = '' - str(object='') -> str
  • name = None
  • override = False - bool(x) -> bool

class SubjectMeta(type)

type(object) -> the object's type type(name, bases, dict, **kwds) -> a new type

Methods

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

Call self as a function.

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

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

mro(self, /)

Return a type's method resolution order.

class SubjectSlot(Disconnectable)

Properties

  • is_connected
  • listener
  • subject

Methods

__init__(self, subject=None, listener=None, event=None, extra_kws=None, extra_args=None, *a, **k)

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

_check_subject_interface(self, subject)
_get_listener(self)
_get_subject(self)
_set_listener(self, listener)
_set_subject(self, subject)
connect(self)
disconnect(self)
soft_disconnect(self)

Attributes

  • _extra_args = [] - Built-in mutable sequence.
  • _extra_kws = {} - dict() -> new empty dictionary

class SubjectSlotError(Exception)

Common base class for all non-exit exceptions.

Methods

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

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

add_note(...)

Exception.add_note(note) -- add a note to the exception

with_traceback(...)

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

Attributes

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

class SubjectSlotGroup(SlotManager)

Methods

__init__(self, listener=None, event=None, extra_kws=None, extra_args=None, *a, **k)

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

_listener_for_subject(self, identifier)
add_subject(self, subject, identifier=None)
disconnect(self)
disconnect_disconnectable(self, slot)
find_disconnectable(self, predicate)
has_disconnectable(self, slot)
has_subject(self, subject)
register_disconnectable(self, slot)
register_slot(self, *a, **k)
register_slot_manager(self, *a, **k)
remove_subject(self, subject)
replace_subjects(self, subjects, identifiers=repeat(None))
unregister_disconnectable(self, slot)

Attributes

  • _extra_args = None
  • _extra_kws = None
  • listener = None

class basestring

Methods

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

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

class partial

partial(func, args, *keywords) - new function with partial application of the given arguments and keywords.

Methods

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

Call self as a function.

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

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

Attributes

  • args = <member 'args' of 'functools.partial' objects> - tuple of arguments to future partial calls
  • func = <member 'func' of 'functools.partial' objects> - function object to use in future partial calls
  • keywords = <member 'keywords' of 'functools.partial' objects> - dictionary of keyword arguments to future partial calls

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.