diff options
Diffstat (limited to 'docs/src/api')
| -rw-r--r-- | docs/src/api/python/functions.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/api/python/functions.md b/docs/src/api/python/functions.md index 060a72f..ecc4982 100644 --- a/docs/src/api/python/functions.md +++ b/docs/src/api/python/functions.md @@ -88,14 +88,14 @@ For this, the `eduvpn.EduVPN` class has the following syntax: # Where _eduvpn is the eduvpn.EduVPN class instance # This gets called when the New_State_Example state is entered # old_state is then the old state -@_eduvpn.event.on("New_State_Example", eduvpn.StateType.Enter) +@_eduvpn.event.on("New_State_Example", eduvpn.StateType.ENTER) def example_enter(old_state: str, data: str) ``` ```python # Where _eduvpn is the eduvpn.EduVPN class instance # This gets called when the Old_State_Example state is left # new_state is then the new state -@_eduvpn.event.on("Old_State_Example", eduvpn.StateType.Leave) +@_eduvpn.event.on("Old_State_Example", eduvpn.StateType.LEAVE) def example_leave(new_state: str, data: str) ``` To show how this can be done in practice, we will give an example in the next section. |
