Thin wrapper to blit called via tkapp.call. *argsid* is a unique string identifier to fetch the correct arguments from the ``_blit_args`` dict, since arguments cannot be passed directly.
(argsid)
| 82 | |
| 83 | |
| 84 | def _blit(argsid): |
| 85 | """ |
| 86 | Thin wrapper to blit called via tkapp.call. |
| 87 | |
| 88 | *argsid* is a unique string identifier to fetch the correct arguments from |
| 89 | the ``_blit_args`` dict, since arguments cannot be passed directly. |
| 90 | """ |
| 91 | photoimage, data, offsets, bbox, comp_rule = _blit_args.pop(argsid) |
| 92 | if not photoimage.tk.call("info", "commands", photoimage): |
| 93 | return |
| 94 | _tkagg.blit(photoimage.tk.interpaddr(), str(photoimage), data, comp_rule, offsets, |
| 95 | bbox) |
| 96 | |
| 97 | |
| 98 | def blit(photoimage, aggimage, offsets, bbox=None): |