-
-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
Lasha Kandelaki edited this page Apr 29, 2026
·
3 revisions
Project-level shared values that widgets can bind to. Change one variable, every bound widget updates live.

F11 or View → Variables.
| Type | Tk runtime | Use for |
|---|---|---|
str |
tk.StringVar |
text labels, entries, dropdown values |
int |
tk.IntVar |
counts, indices |
float |
tk.DoubleVar |
sliders, progress |
bool |
tk.BooleanVar |
switches, checkboxes |
Toolbar buttons in the Variables window. Renaming is safe — bindings reference the variable's UUID, not its name.
In the Properties panel, click the ◇ in a row's left gutter to bind that property to a variable. Bound rows show ◆ + an orange tint, and an ✕ on the right unbinds.

Updates propagate live: typing into one Entry mirrors instantly into every Label / Switch / Slider sharing the variable.
Bound properties become shared tk.Variable instances at the top of the generated class — clean two-way data flow with no extra wiring.
See also — Properties Panel · Exporting Code · Keyboard Shortcuts