(points, image, state, size)
| 105 | |
| 106 | |
| 107 | def on_undo(points, image, state, size): |
| 108 | image = state['img'] |
| 109 | |
| 110 | if len(points['target']) < len(points['handle']): |
| 111 | points['handle'] = points['handle'][:-1] |
| 112 | else: |
| 113 | points['handle'] = points['handle'][:-1] |
| 114 | points['target'] = points['target'][:-1] |
| 115 | |
| 116 | image = add_points_to_image(image, points, size=SIZE_TO_CLICK_SIZE[size]) |
| 117 | return points, image, False |
| 118 | |
| 119 | |
| 120 | def on_change_model(selected, model): |
nothing calls this directly
no test coverage detected