expyriment.control.CallbackQuitEvent

class expyriment.control.CallbackQuitEvent(data=None)

A CallbackQuitEvent.

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

__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 quit wait or event loop function will return this CallbackQuitEvent