pyrot.logging#

Classes#

PyrotMessageBoxHandler

Logging handler that shows a message box for warnings and errors.

Module Contents#

class pyrot.logging.PyrotMessageBoxHandler(minimum_level: int = logging.WARNING)#

Bases: logging.StreamHandler

Logging handler that shows a message box for warnings and errors.

emit(record: logging.LogRecord) None#

Emit a log record by showing a message box.

static show_message_box(title: str, message: str, level: str) None#

Show a message box with the given title and message.