Emit

This function is used to add a new event to the event queue. Widget scripts use this to notify the main program that the user has interacted with the widget in some manner. You can also add your own custom events by setting the event id parameter.

Syntax