(self)
Jump to user-defined event subs if events triggered.
Jump to user-defined event subs if events triggered.
Jump to user - defined event subs if events triggered .
def handle_basic_events(self):
        """Jump to user-defined event subs if events triggered."""
        if self._basic_events.suspend_all or not self.run_mode:
            return
        for event in self._basic_events.enabled:
            if (event.triggered and not event.stopped and event.gosub is not None):
                # release trigger
                event.triggered = False
                # stop this event while handling it
                event.stopped = True
                # execute 'ON ... GOSUB' subroutine;
                # attach handler to allow un-stopping event on RETURN
                self.jump_sub(event.gosub, event)
def handle_basic_events ( self ) : if self . _basic_events . suspend_all or not self . run_mode : return for event in self . _basic_events . enabled : if ( event . triggered and not event . stopped and event . gosub is not None ) : # release trigger event . triggered = False # stop this event while handling it event . stopped = True # execute 'ON ... GOSUB' subroutine; # attach handler to allow un-stopping event on RETURN self . jump_sub ( event . gosub , event )