Re: Fwd: bug in python plasmoid tutorial

2009-09-18 Thread Jean Pierre Charalambos
On Friday 18 September 2009 02:41:08 pm Aaron J. Seigo wrote: > On September 18, 2009, Matt Williams wrote: > > http://osdir.com/ml/plasma-devel/2009-08/msg00220.html > > the real problem there looks like: > > charge = data[QString("Charge Percent")].toInt()[0] > > is trying to treat toInt() as

Re: Fwd: bug in python plasmoid tutorial

2009-09-18 Thread Maik Beckmann
2009/9/18 Aaron J. Seigo : > On September 18, 2009, Matt Williams wrote: >> http://osdir.com/ml/plasma-devel/2009-08/msg00220.html > > the real problem there looks like: > > charge = data[QString("Charge Percent")].toInt()[0] > > is trying to treat toInt() as returning an array. i'm not a pythonist

Re: Fwd: bug in python plasmoid tutorial

2009-09-18 Thread Aaron J. Seigo
On September 18, 2009, Matt Williams wrote: > http://osdir.com/ml/plasma-devel/2009-08/msg00220.html the real problem there looks like: charge = data[QString("Charge Percent")].toInt()[0] is trying to treat toInt() as returning an array. i'm not a pythonista, but i'd expect the correct code to

Fwd: bug in python plasmoid tutorial

2009-09-18 Thread Matt Williams
Hi Jean, I'm forwarding your email the plasma development list as it's likely that someone on there was the author of that tutorial. The guys there should be able to help you. Regards, Matt Williams http://milliams.com -- Forwarded message -- From: Jean Pierre Charalambos Date: