on_output Event
Fires whenever a segment is complete.
Syntax
class TRADACOMSWriterOutputEventParams(object): @property def output_data() -> bytes: ... # In class TRADACOMSWriter: @property def on_output() -> Callable[[TRADACOMSWriterOutputEventParams], None]: ... @on_output.setter def on_output(event_hook: Callable[[TRADACOMSWriterOutputEventParams], None]) -> None: ...
Remarks
The on_output event will fire when the writer completes a new segment and writes data to the output stream or buffer. The Data parameter contains the data bytes.