예제 #1
0
 def checkID(self):
     if self.checkTimer.isActive(
     ) or not self.check_enable or not self.loadAPIdata():
         return
     self["resulttext"].setText(_("Please wait, get weather data ..."))
     MetrixHDWeatherUpdaterStandalone(check=True)
     self.checkTimer.start(3000, False)
예제 #2
0
    def save(self):
        for x in self["config"].list:
            if len(x) > 1:
                x[1].save()

        configfile.save()
        MetrixHDWeatherUpdaterStandalone(once=True)
        self.exit()