-
-
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.
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 |
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.
Close the preview window to return to the editor. Builder state is unchanged.
See also — Canvas Workspace · Event Handlers · Exporting Code · Settings