def startRun(self): if self.weatherPluginEntry is not None: self["statustext"].text = _("Getting weather information...") if self.weatherData is not None: self.weatherData.cancel() self.weatherData = None self.weatherData = MSNWeather() self.weatherData.getWeatherData(self.weatherPluginEntry.degreetype.value, self.weatherPluginEntry.weatherlocationcode.value, self.weatherPluginEntry.city.value, self.getWeatherDataCallback, self.showIcon) else: self["statustext"].text = _("No locations defined...\nPress 'Menu' to do that.")