【发布时间】:2021-03-05 19:06:45
【问题描述】:
from tkinter import *
from configparser import ConfigParser
from tkinter import messagebox
import requests
if weather:
location_lbl['text'] = '{}, {}'.format(weather[0], weather[1])
image_lbl['bitmap'] = 'icons/{}.png'.format(weather[4])
temp_lbl['text'] = '{:.2f}°C, {:.2f}°F'.format(weather[2], weather[3])
weather_lbl['text'] = weather[5]
我收到了这个错误:
_tkinter.TclError: bitmap "icons/50d.png" not defined
请帮帮我。
【问题讨论】:
-
希望将以下内容标记为答案。
标签: python tkinter bitmap tcl png