We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb69c29 commit 57b5630Copy full SHA for 57b5630
weather application/weather.py
@@ -20,7 +20,7 @@ def weather_report(self):
20
messagebox.showerror('Error','City Not Found !!')
21
else:
22
self.location['text'] = self.data['name'] + "," + self.data['sys']['country']
23
- self.c = self.data['main']['temp_max'] - 273.15
+ self.c = int(self.data['main']['temp_max'] - 273.15)
24
self.f = self.c*9/5+32
25
self.weather['text'] = self.data['weather'][0]['main']
26
self.weather['font'] = ('verdana',20,'bold')
0 commit comments