PlasmaToolTipManager with Python

Ricardo amilcarguerra at gmail.com
Wed Feb 18 17:51:45 CET 2009


Hi All,

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?

kind  regards
Ricardo

-- 
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