WindowResult#

class ansys.aedt.mcp.html_window.WindowResult#

Outcome of an attempt to open a detached HTML window.

Attributes:
openedbool

Whether a window or browser was launched.

methodstr

"app_window", "default_browser", or "none".

pathstr | None

Wrapper file that was opened, if one was written.

browserstr | None

Browser executable used for "app_window".

errorstr | None

Reason the window could not be opened.

Overview#

to_dict

Return the result as a JSON-serializable dictionary.

Import detail#

from ansys.aedt.mcp.html_window import WindowResult

Attribute detail#

WindowResult.opened: bool#
WindowResult.method: str#
WindowResult.path: str | None = None#
WindowResult.browser: str | None = None#
WindowResult.error: str | None = None#

Method detail#

WindowResult.to_dict() → dict#

Return the result as a JSON-serializable dictionary.