()
| 13 | l.pack() |
| 14 | |
| 15 | def print_selection(): |
| 16 | if (var1.get() == 1) & (var2.get() == 0): |
| 17 | l.config(text='I love only Python ') |
| 18 | elif (var1.get() == 0) & (var2.get() == 1): |
| 19 | l.config(text='I love only C++') |
| 20 | elif (var1.get() == 0) & (var2.get() == 0): |
| 21 | l.config(text='I do not love either') |
| 22 | else: |
| 23 | l.config(text='I love both') |
| 24 | |
| 25 | var1 = tk.IntVar() |
| 26 | var2 = tk.IntVar() |
nothing calls this directly
no outgoing calls
no test coverage detected