[tutorial][python] problems with self.engine.connectSource

Maik Beckmann beckmann.maik at googlemail.com
Mon Aug 10 21:01:07 CEST 2009


Hello,

The code in this tutorial
  - http://techbase.kde.org/Development/Tutorials/Plasma/PythonPlasmoid
after getting it to work by changing
  charge = data[QString("Charge Percent")].toInt()[0]
to
  charge = data[QString("Charge Percent")] 
gives
{{{ 
Connecting to battery 
/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0
Unrecognized character: /                                                            
Unrecognized character: /                                                            
ERROR: syntax error
}}}

The line which triggers this is 
  self.engine.connectSource(battery, self)

What's wrong?

-- Maik

PS; kde-4.3 on arch linux.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090810/dc01abf9/attachment.htm 


More information about the Plasma-devel mailing list