Posts Tagged ‘fortune’

I know how to make a Plasmoid :D

Saturday, April 4th, 2009

I wrote a small plasmoid that will display fortune cookies from fortune-ml database for the fortune program. A new cookie appears every 30 minutes or on every click on the plasmoid.

Santhosh put the code into smc git yesterday. The plasmoid is written in Python and is generic enough that it will accept any fortune database. I have hardcoded it ( for now ) to use fortune-ml though. Until I figure out how to create dialogues in pyQT and learn to use the KDE configuration framework, its going to be just fortune-ml.The code is pretty straight forward. More time was spent looking up APIs and Python stuff than actually writing it down

Thanks to Praveen for testing the code and Santhosh for creating the fortune-ml database.

Summary : Plasmoid written in pyQT, depends on : KDE 4.2 , fortune-ml (available in SMC git )