Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
desKoala
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nik | Klampfradler
desKoala
Commits
ddd34fbf
Commit
ddd34fbf
authored
11 years ago
by
Nik | Klampfradler
Committed by
Tim Huppertz
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added updating code.
parent
de61ab0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contents/code/main.py
+8
-0
8 additions, 0 deletions
contents/code/main.py
with
8 additions
and
0 deletions
contents/code/main.py
+
8
−
0
View file @
ddd34fbf
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment