Skip to content

Desktop

Trame applications can be bundled into a standalone desktop application and presented to the user like a native application without the need of a browser to expose the UI.

For that part we usually rely on PyInstaller to bundle the Python part of the code into something executable. Then you can either rely on PyWebView or Tauri to hide the browser and enable a native app look.

The trame-cookiecutter provide an initial example for using PyWebView under bundles/desktop/*.

For tauri, you can look at an example here. Then you can browse around for more...

bash
pip install \
    trame trame-vuetify trame-vtk \ # Demo app requirement
    pywebview # Simple Python app view for web content

# Run simple example app
python -m trame.app.demo --app
pip install \
    trame trame-vuetify trame-vtk \ # Demo app requirement
    pywebview # Simple Python app view for web content

# Run simple example app
python -m trame.app.demo --app

Simple trame app

Tauri

Otherwise you can also use tauri and fully leverage File Dialog, Multi-Windows, and App bundler for Linux, Mac and Windows. Several examples are available in its package repository.

Tauri trame app