Administrator
|
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."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
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. |
Registered Member
|
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 |
Registered users: Bing [Bot], Evergrowing, Google [Bot]