Skip to content
Snippets Groups Projects
Commit 956e6401 authored by Tim Huppertz's avatar Tim Huppertz
Browse files

Added tooltips.

parent 93fd3a69
No related branches found
No related tags found
No related merge requests found
......@@ -204,14 +204,15 @@ class Deskoala(plasmascript.Applet):
self.buttons = []
for g in [
[("feed", self.feed), ("turn", self.turn), ("excercise", self.excercise), ("brush", self.brush), ("soap", self.soap)],
[("medicine", self.medicine), ("bonbon", self.bonbon), ("hug", self.hug), ("walk", self.walk), ("sleep", self.sleep)]
[("feed", self.feed, "Feed the animal"), ("turn", self.turn, "Make the animal happy by turning upside down"), ("excercise", self.excercise, "Make sports with the animal"), ("brush", self.brush, "Brush the animal's teeth"), ("soap", self.soap, "Wash the animal")],
[("medicine", self.medicine, "Heal the animal"), ("bonbon", self.bonbon, "Give the animal a bonbon"), ("hug", self.hug, "Hug the animal"), ("walk", self.walk, "Take the animal for a walk"), ("sleep", self.sleep, "Let the animal sleep")]
]:
buttons = QGraphicsLinearLayout(Qt.Vertical, self.layout)
for b in g:
button = Plasma.PushButton(self.applet)
button.setImage(self.package().filePath('images', 'button_' + b[0] + '.gif'))
button.setToolTip(b[2])
self.connect(button, SIGNAL("clicked()"), b[1])
buttons.addItem(button)
......
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