PlasmaToolTipManager with Python

Benjamin Kleiner bizzl.greekdog at web.de
Thu Feb 19 23:16:07 CET 2009


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 .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090219/d77e15b6/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090219/d77e15b6/attachment.sig 


More information about the Plasma-devel mailing list