Skip to content

Preview

Lasha Kandelaki edited this page May 7, 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

Preview launches in a separate console window, so any print() from your Event Handlers stays visible alongside the UI. Crashes pause the console with Press Enter to close… so the traceback never disappears.

Bare preview

The orange ring, floating tools and console can all be turned off in Settings → Preview when you want a clean preview window with nothing extra. With the console off, traceback pause-on-error is bypassed too.

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