Skip to content
Snippets Groups Projects
Commit ddd34fbf authored by Nik | Klampfradler's avatar Nik | Klampfradler Committed by Tim Huppertz
Browse files

Added updating code.

parent de61ab0a
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,9 @@ class Koala():
return "neutral"
else:
return "unhappy"
def update(self):
pass
class Deskoala(plasmascript.Applet):
def __init__(self,parent,args=None):
......@@ -27,6 +30,11 @@ class Deskoala(plasmascript.Applet):
self.setHasConfigurationInterface(True)
self.resize(240, 240)
self.setAspectRatioMode(Plasma.Square)
self.startTimer(5000)
def timerEvent(self, event):
self.koala.update()
self.update()
def paintInterface(self, painter, option, rect):
painter.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment