21 lines
958 B
Python
21 lines
958 B
Python
# Private reader-settings conformance peer; no backend or desktop access.
|
|
import pathlib
|
|
import sys
|
|
|
|
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[3] / "sdk/python"))
|
|
from cthulhu_tentacle import Command, serve
|
|
|
|
|
|
def echo(cancelled, arguments):
|
|
return arguments
|
|
|
|
|
|
extensions = {"pages": [{"id": "probe", "title": "Reader probe", "command": "echo",
|
|
"elements": [{"id": "text", "label": "Example text", "kind": 2}],
|
|
"values": {"text": {"text": "Initial"}}}],
|
|
"quick_settings": [{"id": "probe", "label": "Probe choice", "command": "echo",
|
|
"selected": "default", "options": [{"id": "default", "label": "Default"}]}]}
|
|
serve([Command("echo", "Reader probe", "Private fixture", echo,
|
|
presentation=True, interaction=True, reader=True),
|
|
Command("ordinary", "Ordinary probe", "Private fixture", echo)], extensions=extensions)
|