summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 13:24:40 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 13:24:40 +0200
commit010a9ce99fd7f17ece9d7b804c9b5f3ab30a2bed (patch)
tree68930f2b7799efd25218c0041a7052936eaef265 /docs/src
parent0821d017eb4b640aa6668724de799d3b83354b83 (diff)
Python: Capitalize StateType enum values
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/api/python/functions.md4
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.