Skip to content

Preview

Lasha Kandelaki edited this page May 16, 2026 · 5 revisions

Preview

Preview = Reality. The canvas already renders with the live CTk runtime — the preview window just runs it without editor chrome.

Buttons

Button Shortcut What runs
Preview Active form Ctrl+P Just the active form
Preview (all forms) Ctrl+R Main form + all dialogs reachable from it

Preview window

The spawned window is marked so you never confuse it with the editor:

  • Orange edge ring around the whole window
  • 🟠 PREVIEW — prefix on the title bar

Inside the preview, two floating buttons sit on top of your UI:

Button Shortcut Action
Save F12 Writes the preview to a PNG file (you pick the path)
Copy F11 Copies the preview to the Windows clipboard

Both buttons are draggable — pick them up and place them wherever they don't cover your UI. A short toast confirms each action.

Console output

Where preview print() and logging.* end up depends on Settings → Preview console mode:

Mode Behavior
In-app (recommended) Output streams into the Console panel — color-coded, filterable, searchable
Windows console Separate cmd window with live output; crashes pause on Press Enter to close…
Off Output discarded; preview spawns silently

Bare preview

The orange ring and floating tools can be turned off in Settings → Preview when you want a clean preview window. Pair with Preview console mode = Off for a fully silent run.

Closing

Close the preview window to return to the editor. Builder state is unchanged.


See alsoCanvas Workspace · Event Handlers · Exporting Code · Settings

Clone this wiki locally