devctrl.utility.event.Event#

class Event(immediate=False)[source]#

Bases: object

Methods

Attributes

__annotations__ = {}#
__dict__ = mappingproxy({'__module__': 'devctrl.utility.event', '__firstlineno__': 5, 'events': [(<devctrl.utility.event.Event object>, ('shutter',), {}), (<devctrl.utility.event.Event object>, ('power_switch-PRS',), {}), (<devctrl.utility.event.Event object>, ('ref_lock-in',), {})], '__init__': <function Event.__init__>, 'connect': <function Event.connect>, 'emit': <function Event.emit>, '_handle': <function Event._handle>, 'handle_events': <staticmethod(<function Event.handle_events>)>, '__static_attributes__': ('handlers', 'immediate'), '__dict__': <attribute '__dict__' of 'Event' objects>, '__weakref__': <attribute '__weakref__' of 'Event' objects>, '__doc__': None, '__annotations__': {}})#
__firstlineno__ = 5#
__init__(immediate=False)[source]#
__module__ = 'devctrl.utility.event'#
__static_attributes__ = ('handlers', 'immediate')#
__weakref__#

list of weak references to the object

_handle(*args, **kwargs)[source]#
connect(func)[source]#
emit(*args, **kwargs)[source]#
events = [(<devctrl.utility.event.Event object>, ('shutter',), {}), (<devctrl.utility.event.Event object>, ('power_switch-PRS',), {}), (<devctrl.utility.event.Event object>, ('ref_lock-in',), {})]#
static handle_events()[source]#