Stop acquisition from python script

@timreyes I’ve seen that there is the so called “Trigger view” which is now limited to trigger on the decoding of a value (hex).
Would it be possible to extend it and to trigger when a pattern (like a string) is reported by the custom analyzer?
In this way for instance I could report “error” form the script and then the capture would be stopped upon errors.