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.
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to