on_progress Event
Reports the progress of the decryption operation.
Syntax
class PGPWriterProgressEventParams(object): @property def current() -> int: ... @property def total() -> int: ... @property def cancel() -> bool: ... @cancel.setter def cancel(value) -> None: ... # In class PGPWriter: @property def on_progress() -> Callable[[PGPWriterProgressEventParams], None]: ... @on_progress.setter def on_progress(event_hook: Callable[[PGPWriterProgressEventParams], None]) -> None: ...
Remarks
The class fires this event repeatedly to report the progress of the file protection operation.
Current indicates the amount of processed data in bytes, and Total is the total number of bytes to be processed. Use Cancel to terminate the protection process.