baseimage-tutorial-framework/tfw/internals/event_handling/control_event_handler.py

10 lines
313 B
Python
Raw Normal View History

from tfw.internals.networking import Intent
from .event_handler import EventHandler
class ControlEventHandler(EventHandler): # pylint: disable=abstract-method
def _event_callback(self, message):
if message.get('intent') != Intent.EVENT.value:
self.handle_event(message, self.connector)