May 2017
Beginner to intermediate
444 pages
11h 31m
English
You will learn how to save data from the tkinter GUI into variables so we can use that data. We can set and get their values, which is very similar to the Java getter/setter methods.
Here are some of the available types of coding in tkinter:
| strVar = StringVar() | # Holds a string; the default value is an empty string "" |
| intVar = IntVar() | # Holds an integer; the default value is 0 |
| dbVar = DoubleVar() | # Holds a float; the default value is 0.0 |
| blVar = BooleanVar() | # Holds a Boolean, it returns 0 for False and 1 for True |
Read now
Unlock full access