klyn.gui.windows.DockPane.setContent
method

    public setContent(content as Widget) as Void:

Description

Replaces the hosted content widget while keeping the pane and dock button.

This is useful for transient tools, such as terminals, where the shell process can exit and the next pane activation should create a fresh widget without registering a new dock entry.

    pane.setContent(TerminalView())