PyLogger#

class ansys.aedt.toolkits.common.ui.utils.widgets.py_logger.py_logger.PyLogger(text_color='#f5f6f9', background_color='#000000', font_size=10, font_family='Segoe UI', height=50)[source]#

Logger widget.

Inherits QTextEdit and provides a simple interface for logging strings.

Parameters:
text_colorstr, optional

Text color. The default is "#f5f6f9".

background_color: str, optional

Color of background. The default is "#000000".

font_size: float or int, optional

Font size. The default is 10.

font_family: str, optional

Font size. The default is "Segoe UI”.

height: float or int

Logger height. The default is 10.

log(message)[source]#

Logs a message to the widget.

Parameters:

message: The string message to log.