-
-
Notifications
You must be signed in to change notification settings - Fork 0
Preview
Preview = Reality. The canvas already renders with the live CTk runtime — the preview window just runs it without editor chrome.
| 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 |
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.
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.
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.
Close the preview window to return to the editor. Builder state is unchanged.
See also — Canvas Workspace · Event Handlers · Exporting Code · Settings