Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2024-01-17 17:45:07 +01:00 committed by GitHub
parent 3997b736dc
commit 43bd957bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ''