From 010a9ce99fd7f17ece9d7b804c9b5f3ab30a2bed Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 27 Sep 2022 13:24:40 +0200 Subject: Python: Capitalize StateType enum values --- docs/src/api/python/functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/src') 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. -- cgit v1.2.3