PlasmaToolTipManager with Python

Ricardo amilcarguerra at gmail.com
Fri Feb 20 00:16:13 CET 2009


Now it works!!
Thanks :-)


2009/2/19 Benjamin Kleiner <bizzl.greekdog at web.de>:
> On Thursday, 19. February 2009 22:36:08 Ricardo wrote:
>> Thanks a lot Benjamin,
>>
>> now it runs without complaining but when i pass the mouse over the
>> applet it doesn't show the tooltip :(
>> is there any other thing i should do?
> Implementing it in hoverMoveEvent did the trick for me.
>
> def init(self):
> self.connect(self, SIGNAL("hoverMoveEvent"), self.hoverMoveEvent)
>
> def hoverMoveEvent(self, event):
> tooltipContent = Plasma.ToolTipContent(QString("prueba"), QString("eoooo
> 1"), KIcon() )
> Plasma.ToolTipManager.self().setContent(self.applet, tooltipContent)
>
> Maybe it is even sufficient to just implement hoverEnterEvent .
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at 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


More information about the Plasma-devel mailing list