Package circuits :: Module core :: Class Event

Class Event

object --+
         |
        Event
Known Subclasses:

Create a new Event Object

Create a new Event Object populating it with the given list of arguments and keyword arguments.

Instance Methods
 
__eq__(x, y)
x==y
 
__getitem__(x, y)
x[y]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(x)
repr(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
  channel
The channel this Event is bound for
  name
The name of the Event
  target
The target Component's channel this Event is bound for
Properties

Inherited from object: __class__

Method Details

__eq__(x, y)
(Equality operator)

 

x==y

Tests the equality of Event self against Event y. Two Events are considered "equal" iif the name, channel and target are identical as well as their args and kwargs passed.

__getitem__(x, y)
(Indexing operator)

 

x[y]

Get and return data from the Event object requested by "x". If an int is passed to x, the requested argument from self.args is returned index by x. If a str is passed to x, the requested keyword argument from self.kwargs is returned keyed by x. Otherwise a TypeError is raised as nothing else is valid.

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

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • args (tuple) - list of arguments
  • kwargs (dict) - dct of keyword arguments
Overrides: object.__init__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__