capturegraph.procedures.toolkits.instructions
#
Instructions Toolkit#
This module provides utilities for managing per-user acknowledgements in collaborative capture workflows. Users must acknowledge instructions before proceeding, and these acknowledgements are cached per-user so they only see each instruction once.
The toolkit enables collaborative capture scenarios where:
- Multiple users share a capture target
- Each user needs their own acknowledgement state
- Instructions with optional images guide users through the capture process
show_instructions(title, text, image=NullProcedure(return_type=PImage))
#
Shows instructions and saves acknowledgement to a user-specific folder.
Displays instruction text with an optional image and waits for user acknowledgement. The acknowledgement is cached so the user only sees the instructions once. Uses user-specific storage for collaborative capture scenarios.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The instruction text to display |
required |
image
|
Procedure[PImage]
|
Optional image procedure to display alongside instructions |
NullProcedure(return_type=PImage)
|
Returns:
| Type | Description |
|---|---|
Procedure[PBool]
|
A procedure that returns True when the user has acknowledged |