Skip to content. Skip to navigation

Ian Lawrence

Personal tools
You are here: Home Blog Hildon Python plug-in IDE

Hildon Python plug-in IDE

pyphantom is an IDE intended to help developers to create python plug-ins for Hildon Desktop. It is completely developed in python and it is based on pygtk and libhildondesktop.

This is a follow up to the Hildon Desktop

First thing is to export PKG_CONFIG_PATH
like this:

vern@N800-hacker:~$ export PKG_CONFIG_PATH=/opt/maemo/lib/pkgconfig:/usr/lib/pkgconfig

then add the python related distribution

vern@N800-hacker:~$ sudo aptitude install python python-dev python-gtk2 python-gtk2-dev python-gobject python-gobject-dev

then build and install the Hildon
Desktop python support module:

vern@N800-hacker:~$ svn co
vern@N800-hacker:~$ cd python-hildondesktop
vern@N800-hacker:~$ ./
vern@N800-hacker:~$ ./configure --prefix=/opt/maemo
vern@N800-hacker:~$ make
vern@N800-hacker:~$ sudo make install

then check that importing these required
modules works ok:

import sys
import os
import traceback
import pygtk
import gtk
import gobject
import pango
import ConfigParser
import gtksourceview
import hildondesktop

like this:

vern@N800-hacker:~$ python
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ConfigParser
>>> import hildondesktop
>>> ...and so on

then download pyphantom .
Run it like:
vern@N800-hacker:~/pyphantom/release-0.0.3$ python
This is what the first release 0.0.2 looks
Pyphantom old

and here is the current 0.0.3 release:
Pyphantom 0.0.3

running a plugin which prints 'Ola Mundo!'
in theĀ  Debug I/O.
Tuesday, June 12, 2007 in BricolabsCode  | Permalink |  Comments (0)   Digg   Yahoo   Google   Spurl
« September 2017 »
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Borala (4)
Bricolabs (12)
Code (57)
Estudiolivre (12)
Life (26)
MetaReciclagem (9)
Thoughts (16)
Work (41)