Re: Data engine update issue in Javascript

2012-02-13 Thread Maik Beckmann
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

Re: Data engine update issue in Javascript

2012-02-10 Thread Maik Beckmann
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

Re: Data engine update issue in Javascript

2012-02-09 Thread Maik Beckmann
https://www.dropbox.com/s/omnt27sor7d99zl/textmondebug.plasmoid ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel

Data engine update issue in Javascript

2012-02-08 Thread Maik Beckmann
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

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

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

2009-08-10 Thread Maik Beckmann
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/