Skip to content

Variables

Lasha Kandelaki edited this page Apr 29, 2026 · 3 revisions

Variables

Project-level shared values that widgets can bind to. Change one variable, every bound widget updates live.

Variables window

Open the Variables window

F11 or View → Variables.

Types

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

Add / Rename / Delete

Toolbar buttons in the Variables window. Renaming is safe — bindings reference the variable's UUID, not its name.

Bind a widget property

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.

Binding a property

Updates propagate live: typing into one Entry mirrors instantly into every Label / Switch / Slider sharing the variable.

Export

Bound properties become shared tk.Variable instances at the top of the generated class — clean two-way data flow with no extra wiring.


See alsoProperties Panel · Exporting Code · Keyboard Shortcuts

Clone this wiki locally