vispy.util.tests.test_event_emitter module

class vispy.util.tests.test_event_emitter.BasicEvent(type, native=None, **kwargs)[source]

Bases: vispy.util.event.Event

class vispy.util.tests.test_event_emitter.TestEmitters(methodName='runTest')[source]

Bases: unittest.case.TestCase

assert_result(key=None, **kwargs)[source]
record_event(ev, key=None)[source]
test_chained_emitters()[source]

Chained emitters

test_decorator_connection()[source]

Connection by decorator

test_disconnect()[source]

Emitter disconnection

test_emission_order()[source]

Event emission order

test_emitter()[source]

Emitter constructed with no arguments

test_emitter_block()[source]

EventEmitter.blocker

test_emitter_error_handling()[source]

Emitter error handling

test_emitter_loop()[source]

Catch emitter loops

test_emitter_source()[source]

Emitter constructed with source argument

test_emitter_subclass()[source]

The EventEmitter subclassing

test_emitter_type()[source]

Emitter constructed with type argument

test_emitter_type_event_class()[source]

Emitter constructed with event_class argument

test_event_block()[source]

Event.blocked

test_event_handling()[source]

Event.handled

test_event_kwargs()[source]

Extra Event kwargs

test_multiple_callbacks()[source]

Multiple emitter callbacks

test_prebuilt_event()[source]

Emit pre-built event

test_reconnect()[source]

Ignore callback reconnect

test_source_stack_integrity()[source]

Emitter checks source stack

test_symbolic_callback()[source]

Symbolic callbacks

test_typed_event()[source]

Emit Event class with pre-specified type

try_emitter(em, **kwargs)[source]
class vispy.util.tests.test_event_emitter.TypedEvent(**kwargs)[source]

Bases: vispy.util.event.Event

vispy.util.tests.test_event_emitter.test_emitter_block()[source]
vispy.util.tests.test_event_emitter.test_emitter_reentrance_allowed_when_blocked1()[source]
vispy.util.tests.test_event_emitter.test_emitter_reentrance_allowed_when_blocked2()[source]
vispy.util.tests.test_event_emitter.test_emitter_reentrance_allowed_when_blocked3()[source]
vispy.util.tests.test_event_emitter.test_event_connect_order()[source]

Test event connection order