()
| 17 | |
| 18 | on_hit = False |
| 19 | def hit_me(): |
| 20 | global on_hit |
| 21 | if on_hit == False: |
| 22 | on_hit = True |
| 23 | var.set('you hit me') |
| 24 | else: |
| 25 | on_hit = False |
| 26 | var.set('') |
| 27 | |
| 28 | b = tk.Button(window, text='hit me', width=15, |
| 29 | height=2, command=hit_me) |
nothing calls this directly
no outgoing calls
no test coverage detected