diff --git a/contents/code/main.py b/contents/code/main.py index 12f31a1b603a2fcd215aec8deca41d79d56d4d41..8dd99b692ccd2bbffdb3dd3470c78edc4381a9b8 100644 --- a/contents/code/main.py +++ b/contents/code/main.py @@ -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)