def requestWeatherData(self):
# If internet has been out for an hour, there is already a
# thread still running trying to get the data
if self.__weatherThread is None or not self.__weatherThread.isAlive():
self.__weatherThread = threading.Thread(target=self.__asyncRequestWeatherData)
self.__weatherThread.start()
评论列表
文章目录