浏览代码

show missing graphics in weather

Thomas Buck 9 个月前
父节点
当前提交
0bd1656e68
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 二进制
      images/weather_unknown.png
  2. 3
    0
      weather.py

二进制
images/weather_unknown.png 查看文件


+ 3
- 0
weather.py 查看文件

@@ -229,6 +229,9 @@ class WeatherScreen:
229 229
             if d[0] != val:
230 230
                 continue
231 231
 
232
+            if d[2] == None:
233
+                self.descriptions[i] = (d[0], d[1], "weather_unknown.png")
234
+
232 235
             if isinstance(d[2], str):
233 236
                 w = 50
234 237
                 target_size = (w, w)

正在加载...
取消
保存