I don’t think you can use the built in event system (though it would take Anvil central to say for sure)
The set_event_handler and raise_event methods are methods of Forms and components, so that’s correct, you can’t use them for pure Python classes.
@david.wylie That library is a good find - looks like it does the job, works in Skulpt, and only 111 lines of code!