Run whenever an event fires for which the frame is registered. In order for this script to be run, the frame must be registered for at least one event via its :RegisterEvent() method. See the Events Reference for details of each event.


OnEvent(self, "event", ...)


  • self - Reference to the widget for which the script was run (frame)
  • event - Name of the event (string)
  • ... - Arguments specific to the event (list)