From 199e1a5d6eec2dfac7dac659b77e7e3c1596763f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Mon, 30 Jul 2018 09:00:19 +0200 Subject: [PATCH] Update readme with Python3 event handler info --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d46cd4b..d1670ac 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ Our pre-made event handlers are written in Python3, but you can write event hand This makes the framework really flexible: you can demonstrate the concepts you want to in any language while using the same set of tools provided by TFW. Inside Avatao this means that any of the content teams can use the framework with ease. +To implement an event handler in Python3 you should subclass the `EventHandlerBase` or `FSMAwareEventHandler` class in `tfw.event_handler_base` (the first provides a minimal working `EventHandler`, the second allows you to execute code on FSM events). + ### FSM Another unique feature of the framework is the FSM – finite state machine – representing the state of your challenge.