Thanks... I did what you said, but now it says this:
Plasma.ToolTipManager.self().registerWidget(self) TypeError: argument 1 of ToolTipManager.registerWidget() has an invalid type and without Plasma.ToolTipManager.self().registerWidget(self) Plasma.ToolTipManager.self().setContent(self.toolTipData) TypeError: argument 1 of ToolTipManager.setContent() has an invalid type 2009/2/18 Benjamin Kleiner <bizzl.greek...@web.de>: > On Wednesday, 18. February 2009 17:51:45 Ricardo wrote: >> Hi All, > Hi... > >> I'm writing a small plasma applet with Python, i try to display a >> tooltip when the mouse passes over the plasmoid, i tried with this >> code: >> >> Plasma.ToolTipManager.registerWidget(self) >> self.toolTipData=Plasma.ToolTipContent() >> self.toolTipData.mainText=("prueba") >> self.toolTipData.subText=("eoooo 1") >> Plasma.ToolTipManager.setContent(self,self.toolTipData) >> >> but it didn't work, it says: >> >> Plasma.ToolTipManager.registerWidget(self) >> TypeError: first argument of unbound method >> ToolTipManager.registerWidget() must be a ToolTipManager instance >> >> any ideas? > I stumbled about that, too ;) > You've to get the Instance ofthe ToolTipManager first, with > Plasma.ToolTipManager.self() : > Plasma.ToolTipManager.self().registerWidget(self) > self.toolTipData=Plasma.ToolTipContent() > self.toolTipData.mainText=("prueba") > self.toolTipData.subText=("eoooo 1") > Plasma.ToolTipManager.self().setContent(self,self.toolTipData) > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel > > -- Ella está en el horizonte -dice Fernando Birri-. Me acerco dos pasos, ella se aleja dos pasos. Camino diez pasos y el horizonte se corre diez pasos más allá. Por mucho que yo camine, nunca la alcanzaré. ¿Para que sirve la utopía? Para eso sirve: para caminar.... Eduardo Galeano _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel