(key)
| 81 | |
| 82 | |
| 83 | def set_image_to_blank(key): |
| 84 | img = PIL.Image.new('RGB', (100, 100), (255, 255, 255)) |
| 85 | img.thumbnail((1, 1), PIL.Image.LANCZOS) |
| 86 | bio = io.BytesIO() |
| 87 | img.save(bio, format='PNG') |
| 88 | imgbytes = bio.getvalue() |
| 89 | window[key].update(image_data=imgbytes) |
| 90 | |
| 91 | |
| 92 | # get list of PNG files in folder |
no test coverage detected