5.3.1.8.1.1. cli.cmd_gui.frame_base.BaseFrame

class cli.cmd_gui.frame_base.BaseFrame(parent: Notebook, text_widget: Text, output_file_name: str)

Bases: Frame

Base class for frames that write into a shared text widget.

get_log_tail(number_of_lines: int = 10) → str

Return the last lines of the current log file for quick diagnostics.

on_close() → None

Run a cleanup hook called when the main window shuts down.

reset_text() → None

Empty the text widget

write_text(file_input: str | None = None) → None

Write incremental log content into the shared text widget.