NekUpload.frontend.components.terminal module

class NekUpload.frontend.components.terminal.TerminalHandler(terminal: TerminalWidget)[source]

Bases: Handler

Custom logging handler

Parameters:

logging (_type_) – _description_

emit(record)[source]

Writes a log to the terminal

Parameters:

record (_type_) – _description_

class NekUpload.frontend.components.terminal.TerminalWidget(parent, height=10, **kwargs)[source]

Bases: Frame

Terminal widget to emulate a terminal

Parameters:

ttk (_type_) – _description_

clear()[source]

Clears the terminal content.

tag_configure(tag, **kwargs)[source]

Configures a tag for styling text.

write(text: str, tag=None)[source]

Appends text to the terminal.

Parameters:
  • text – The text to add.

  • tag – An optional tag to apply to the text (for styling).