MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / hit_me

Function hit_me

tkinterTUT/tk2_label_button.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18on_hit = False
19def 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
28b = tk.Button(window, text='hit me', width=15,
29 height=2, command=hit_me)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected