plesty.server.view

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 (plesty.server.view.workers), so the window never freezes. Importing this package needs the gui extra (PySide6).

Submodules

Functions

run_gui(→ int)

Open the console on bench and run until the window closes; returns the exit code.

Package Contents

plesty.server.view.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.

Parameters:
Return type:

int