plesty.server.view ================== .. py:module:: plesty.server.view .. autoapi-nested-parse:: View layer: the Qt console. The views take plesty-lib's *theme* — the plesty.net palette, fonts and widget chrome from ``plesty.lib.ui.theme`` — but not its docking shell: the layout here is designed for a bench console and nothing else. One main window (menu bar, device table, detail pane), a few pop-up dialogs (declare a device, run a field test, follow a job), nothing docked. Views render what the presenter hands them and emit intents back to it; they hold no application logic and never touch a service. Every presenter call that may block (a start waits for the probe, an install for ``uv``) runs on a worker thread (:mod:`plesty.server.view.workers`), so the window never freezes. Importing this package needs the ``gui`` extra (PySide6). Submodules ---------- .. toctree:: :maxdepth: 1 /reference/plesty/server/view/app/index /reference/plesty/server/view/dialogs/index /reference/plesty/server/view/window/index /reference/plesty/server/view/workers/index Functions --------- .. autoapisummary:: plesty.server.view.run_gui Package Contents ---------------- .. py:function:: run_gui(bench: plesty.server.presenter.Bench, title: str | None = None) -> int Open the console on *bench* and run until the window closes; returns the exit code.