mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
small changes
This commit is contained in:
parent
7a88aeba0f
commit
c89974bc19
3 changed files with 5 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ def main():
|
|||
#start timer for news
|
||||
news_timer = QTimer()
|
||||
news_timer.timeout.connect(news_obj.get_news)
|
||||
news_timer.setInterval(600000) # 10 minutes
|
||||
news_timer.setInterval(300000) # 10 minutes #changed to 5 mins
|
||||
|
||||
news_timer.start()
|
||||
|
||||
|
|
@ -102,6 +102,6 @@ def main():
|
|||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
#TODO: add weather to qml
|
||||
#TODO: move weather to own file
|
||||
|
||||
|
||||
|
||||
|
|
@ -42,6 +42,7 @@ class news():
|
|||
self._news_dict_length += 1
|
||||
#for i in self._news_dict:
|
||||
# print(self._news_dict[i])
|
||||
print("news updated")
|
||||
return self._news_dict
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ class Weather(QObject):
|
|||
weather_context = engine.rootContext()
|
||||
weather_context.setContextProperty("weatherImage", image)
|
||||
driver.quit()
|
||||
print("weather updated")
|
||||
self.weatherUpdated.emit(image)
|
||||
return screenshot_path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue