waveform_editor.util.State¶
- class waveform_editor.util.State¶
Bases:
objectSimple state object to suppress declarative logic.
Example
ignore_clicks = State() def process(obj): if ignore_clicks: return ... widget = pn.widgets.Button(name="Process", on_click=process) # Elsewhere we can use a with statement to temporarily ignore clicks: with ignore_clicks: # process will not do anything, even though the on_click triggers widget.clicks = 0- __init__()¶
Methods
__init__()
Last update:
2025-10-02