Метка работает по-другому, чтобы поместить туда текст, вам просто нужно использовать параметр «текст», поэтому ваш код должен выглядеть так:
# it's not a class, it's a function!
def tell_weather():
url ='http://api.openweathermap.org/data/2.5/weather?q=appid=xxxxxx"'
json_data = requests.get(url).json()
format_add = json_data['main']['temp']
# print makes output to console, it's wrong, here you should return string
return("Its " + str(format_add) + " Temp")
class MyLabelApp(App):
def build(self):
# what's that line doing here? Comment it!
# label display the text on screen
# so here we use text parameter that will be equal to string that function tell_weather returns
lbl = Label(text=tell_weather())
return lbl