diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-11 01:13:25 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-11 01:13:25 +0300 |
commit | fe82b8d1e8425c2e9ba30f85de20f85de274dd99 (patch) | |
tree | 625ea0af67aaee707d583f145ae2b3cdc829e562 /tests | |
parent | 4b8cf11fa554f9e1aeaa9d3a44df275751577f12 (diff) |
Docs: correct doc-string for bl_run_operators_event_simulate
The event() action swapped type/value arguments.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_run_operators_event_simulate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/bl_run_operators_event_simulate.py b/tests/python/bl_run_operators_event_simulate.py index 1cc621b9684..adaacf6cd83 100644 --- a/tests/python/bl_run_operators_event_simulate.py +++ b/tests/python/bl_run_operators_event_simulate.py @@ -281,10 +281,10 @@ class action_handlers: yield dict(type='RET', value='TAP') @staticmethod - def event(*, value, type, ctrl=False, alt=False, shift=False, repeat=1, only_validate=False): + def event(*, type, value, ctrl=False, alt=False, shift=False, repeat=1, only_validate=False): """ - value: The event, typically key, e.g. 'ESC', 'RET', 'SPACE', 'A'. - type: The event type, valid values include: 'PRESS', 'RELEASE', 'TAP'. + type: The event, typically key, e.g. 'ESC', 'RET', 'SPACE', 'A'. + value: The event type, valid values include: 'PRESS', 'RELEASE', 'TAP'. ctrl: Control modifier. alt: Alt modifier. shift: Shift modifier. |