Skip to content
bmionescu edited this page Jul 8, 2024 · 4 revisions

For testing the effects of this repo's changes to the main looplab branch, the following script was used:

https://gist.github.com/bmionescu/11c99a465271fdaaf4ec5cea761070f0

All possible callback formats are tested. All of them print successfully.

Note that the callbacks for theEvent and after_theEvent clash, and INITIAL_STATE clashes with enter_INITIAL_STATE, meaning that if you run this script, one or the other but not both will print. You may get theEvent instead of after_theEvent, or the reverse, and similar for INITIAL_STATE and enter_INITIAL_STATE. The same phenomenon occurs in the main looplab branch, so this behaviour is not a result of the changes of this repo. If only one of them is defined, that one will always run successfully.

Clone this wiki locally