Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
3997b736dc
commit
43bd957bbe
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ This is an optional topic!
|
||||||
## [Control variables](https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/control-variables.html)
|
## [Control variables](https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/control-variables.html)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
v = BooleanVar() # Holds a boolean
|
v = tk.BooleanVar() # Holds a boolean
|
||||||
v = tk.DoubleVar() # Holds a float; default value 0.0
|
v = tk.DoubleVar() # Holds a float; default value 0.0
|
||||||
v = tk.IntVar() # Holds an int; default value 0
|
v = tk.IntVar() # Holds an int; default value 0
|
||||||
v = tk.StringVar() # Holds a string; default value ''
|
v = tk.StringVar() # Holds a string; default value ''
|
||||||
|
|
Loading…
Reference in a new issue