MCPcopy Create free account
hub / github.com/ActiveState/code / release

Function release

recipes/Python/511434_Paint_10/recipe-511434.py:99–106  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

97 hold = [event.x, event.y]
98
99def release(event):
100 global hold
101 if len(hold) > 2:
102 event.widget.delete('TEMP')
103 event.widget.create_line(hold, fill=fill, smooth=True)
104 call('delete', 'TEMP')
105 call('create_line', hold, fill=fill, smooth=True)
106 hold = []
107
108def delete(event):
109 event.widget.delete(ALL)

Callers 2

recipe-252132.pyFile · 0.50
recipe-528875.pyFile · 0.50

Calls 2

callFunction · 0.70
deleteMethod · 0.45

Tested by

no test coverage detected