fix / typo in events.rst

The right function call has to be setType
Merge pull request #177 from scasei/patch-2

fix / typo in events.rst