For the sake of completeness, here github repo of the applet in question
- http://github.com/MaikBeckmann/plasma-textmon
and the docs I wrote on it so far
- http://maikbeckmann.github.com/plasma-textmon/
Comments are especially welcome in regards to
http://maikbeckmann.github.com/plasma-text
I figured the problem(s) out. Here it goes..
Here source code from the initial email without the print statements.
var layout = new LinearLayout(plasmoid);
l = new Label();
l.text = "---";
layout.addItem(l);
var smDataEngine = dataEngine("systemmonitor")
smDataEngine.sourceAdded.co
https://www.dropbox.com/s/omnt27sor7d99zl/textmondebug.plasmoid
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
Hello,
Forever ago when I switched (back) from the awesome window manager to KDE I've
done a textual system monitor applet in javascript, which shows the most
important system parameters (cpu, memory, network, hdd). I've cleaned the
source up and decided it might of interested to others. But th
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
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/