{"id":1227,"date":"2008-10-25T01:29:11","date_gmt":"2008-10-24T23:29:11","guid":{"rendered":"http:\/\/vizZzion.org\/blog\/2008\/10\/python-plasmoids\/"},"modified":"2008-10-25T01:29:11","modified_gmt":"2008-10-24T23:29:11","slug":"python-plasmoids","status":"publish","type":"post","link":"https:\/\/vizZzion.org\/blog\/2008\/10\/python-plasmoids\/","title":{"rendered":"Python Plasmoids."},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/vizzzion.org\/images\/blog\/python-scriptengine.png\" alt=\"\" align=\"right\" class=\"showonplanet\" \/><br \/>\n    Simon, our worshippalicous python bindings hacker came by tonight for a bit of hacking (he lives across<br \/>\n    the river from here, about 20 minutes by bike on a well OSM-mapped route. I was keen to get the new Python scriptengine Sime has just landed in SVN running so I can play around with Plasmoids written in Python.<br \/>\n    The steps to get Python Plasmoids on running on your desktop are (assuming you have KDE from SVN installed): installing python, sip and pyqt into your development environment; building kdebindings, then you can build the plasma scriptengine located in kdebase. There are <a href=\"http:\/\/techbase.kde.org\/Getting_Started\/Build\/KDE4\/Python_Support\">building instructions<\/a> on TechBase.<br \/>\n    Developing Plasma applets (which is pretty much the only thing you can do with the scriptengine right now, since there aren&#8217;t any applets written yet &#8212; except for the obligatory clock) is pretty easy from that point. You need to have a .desktop file containing some metadata and you actual script (which can be how ever long you wanted, it lands in contents\/code\/main.py and other .py&#8217;s). How you include graphics and more is well documented on <a href=\"http:\/\/techbase.kde.org\/Projects\/Plasma\/Package\">TechBase<\/a>, so I won&#8217;t repeat that here. To see if the scripting engine works, open the Add Applet&#8230; dialogue|Install new widget|&#8230;from local file. You should then see the scripting engine listed among the other options. In the future, we can make this part a bit nicer, installing and running and applet could be as easy as dropping it on the Plasma canvas and do the necessary security work. ll the needed information is already contained in the package.<\/p>\n<p \/>\n    This all is pretty new right now, and there are some rough edges here and there that need to be ironed out, but it basically seems to work at this point and is documented so we Pythonistas can get our hands dirty, with KDE 4.2 hopefully out of the Box.<\/p>\n<p \/>\n    The really exciting thing in my opionion about this is that with the scripting support, we can deliver full-fledged Plasma applets in Python. As they are scripts, it&#8217;s easy to deliver them in a platform independant way through webservices such as the <a href=\"http:\/\/www.opendesktop.org\/\">OpenDesktop<\/a>, <a href=\"http:\/\/kde-look.org\">KDE-Look<\/a> and others or share them with your friends in other ways (hi JOLIE!).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simon, our worshippalicous python bindings hacker came by tonight for a bit of hacking (he lives across the river from here, about 20 minutes by bike on a well OSM-mapped route. I was keen to get the new Python scriptengine Sime has just landed in SVN running so I can play around with Plasmoids written&hellip; <a class=\"more-link\" href=\"https:\/\/vizZzion.org\/blog\/2008\/10\/python-plasmoids\/\">Continue reading <span class=\"screen-reader-text\">Python Plasmoids.<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-1227","post","type-post","status-publish","format-standard","hentry","category-kde"],"_links":{"self":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/comments?post=1227"}],"version-history":[{"count":0,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1227\/revisions"}],"wp:attachment":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/media?parent=1227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/categories?post=1227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/tags?post=1227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}