...<WeatherWidgetMedium@FloatLayout>:size_hint: None, Nonesize: 400, 260weathermedium: weathermediumImage:id: weathermediumsize_hint: None, Nonesize: 220,220pos_hint: { 'center_x': 0.4, 'center_y': 0.5 }allow_stretch: Truesource: app.weather_icon...
class TouchMainApp(App):weather_icon = StringProperty('')def build(self):self.weather_icon='../static/icons/wi-day-sunny.png'kv = Builder.load_file('../static/touch.kv')def pidoraWeatherCallback(self, dummy, topic, infotype, payload):icon='../static/icons/somenewweathericon.png'
self.weather_icon=icon
The code looks fine.
Make sure the path to the new file is correct.
Check if there are any errors in the log. If you have a kv file named touchmain.kv, there may be 2 kv files loading.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAJoVLP61RODrzYAUghX4_z%2BgU0AENjh6ZHgOOyJ-Pc8NKz4T4w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/61990aa8.1c69fb81.ea998.ac37SMTPIN_ADDED_MISSING%40gmr-mx.google.com.