📜  在 pysimplegui 中显示来自 url 的图像 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:22.608000             🧑  作者: Mango

代码示例1
url = "https://upload.wikimedia.org/wikipedia/commons/d/d9/Test.png"
response = requests.get(url, stream=True)
response.raw.decode_content = True
# img = ImageQt.Image.open(response.raw)
# data = image_to_data(img)
img_box = sg.Image(data=response.raw.read())