The interaction module provides Request, Response, an related classes for handling user interaction through the hooke.engine.CommandEngine/hooke.ui.UserInterface connection.
Methods
response | |
response_class |
End of user input.
After this point, no more user interaction is possible.
Methods
response | |
response_class |
Request validator class.
Examples
>>> i = InList(['abc', 'def', 5, True])
>>> i('abc')
>>> i(5)
>>> i(False)
Traceback (most recent call last):
...
ValueError: False
Methods
append | |
count | |
extend | |
index | |
insert | |
pop | |
remove | |
reverse | |
sort |
Mid-command inter-process interaction.
Stores type, a string representing the interaction type (‘boolean’, ‘string’, ...).
Methods
response | |
response_class |
Command engine requests for information from the UI.
>>> r = Request('test', 'Does response_class work?')
>>> r.response_class()
<class 'hooke.interaction.Response'>
Methods
response | |
response_class |
Methods
response | |
response_class |
Methods
response | |
response_class |