expyriment.control.CallbackQuitEvent

class expyriment.control.CallbackQuitEvent(data=None)

A CallbackQuitEvent.

If a callback function returns a CallbackQuitEvent object the currently processed the wait or event loop function will be quited.

__init__(data=None)

Init CallbackQuitEvent.

Parameters:
dataany data type, optional

you might use this variable to return data or values from your callback function to your main function, since the quited wait or event loop function will return this CallbackQuitEvent