This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Programming Plasma with Python

Tags: None
(comma "," separated)
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Programming Plasma with Python

Sat Jan 24, 2009 2:38 pm
Simon Edwards (PyKDE4 maintainer) and myself have assembled a bunch of tutorials to help people getting started with Plasma scripting in Python. They are on KDE's Techbase and deal with creating applets, using Plasma DataEngines, and more.

Feedback and / or input is welcome.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
agim
Registered Member
Posts
2
Karma
0

RE: Programming Plasma with Python

Sun Feb 01, 2009 12:05 am
After following the tutorial for python programming on KDE's Techbase, I get this error.
--Could not create a python ScriptEngine for the Hello Python widget.
I went to the troubleshooting section on the tutorial, and read this:

Error:
Could not create a python scriptengine for "your package name"
Solution: check if your plasma installation has the required files (plasma_importer.py, plasmascript.py) installed.
Packages for Opensuse 11.1: http://download.opensuse.org/repositori ... SUSE_11.1/
Source files: http://websvn.kde.org/trunk/KDE/kdebase ... es/python/

My question is, how do I install these files into my plasma installation.
paolo
Registered Member
Posts
4
Karma
0

RE: Programming Plasma with Python

Thu Apr 30, 2009 3:31 pm
einar wrote:Simon Edwards (PyKDE4 maintainer) and myself have assembled a bunch of tutorials to help people getting started with Plasma scripting in Python. They are on KDE's Techbase and deal with creating applets, using Plasma DataEngines, and more.

Feedback and / or input is welcome.


could you add internationalization, please?
for example, in http://techbase.kde.org/Development/Tut ... ingStarted
painter.drawText(rect, Qt.AlignVCenter | Qt.AlignHCenter, "Hello Python!")
should be
painter.drawText(rect, Qt.AlignVCenter | Qt.AlignHCenter, i18n("Hello Python!"))

then I've extracted strings, I've translated them, I've compiled them, but where do I have to install message catalogs? in /usr/share/locale/xx/LC_MESSAGES/ or in contents/code? and how to settle the name of catalog in python plasma?

Please update that tutorial, it's important for me! ;-)
many thanks :-)


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]