()
| 27 | c.crossed_eyes = False |
| 28 | |
| 29 | def toggle_tongue(): |
| 30 | if not c.tongue_out: |
| 31 | c.itemconfigure(tongue_tip, state = NORMAL) |
| 32 | c.itemconfigure(tongue_main, state = NORMAL) |
| 33 | c.tongue_out = True |
| 34 | else: |
| 35 | c.itemconfigure(tongue_tip, state = HIDDEN) |
| 36 | c.itemconfigure(tongue_main, state = HIDDEN) |
| 37 | c.tongue_out = False |
| 38 | |
| 39 | def cheeky(event): |
| 40 | toggle_tongue() |