Adjust the GUI to reflect the current weather metrics
(window)
| 245 | |
| 246 | |
| 247 | def update_metrics(window): |
| 248 | """ Adjust the GUI to reflect the current weather metrics """ |
| 249 | metrics = ['City', 'Temp', 'Feels Like', 'Wind', 'Humidity', 'Precip 1hr', |
| 250 | 'Description', 'Icon', 'Pressure', 'Updated'] |
| 251 | for metric in metrics: |
| 252 | if metric == 'Icon': |
| 253 | window[metric].update(data=APP_DATA[metric]) |
| 254 | else: |
| 255 | window[metric].update(APP_DATA[metric]) |
| 256 | |
| 257 | |
| 258 | def main(refresh_rate, win_location): |