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
Portability tutorial.
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
packages:
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 https://stage.maemo.org/svn/maemo/projects/haf/trunk/python-hildondesktop vern@N800-hacker:~$ cd python-hildondesktop vern@N800-hacker:~$ ./autogen.sh vern@N800-hacker:~$ ./configure --prefix=/opt/maemo vern@N800-hacker:~$ make vern@N800-hacker:~$ sudo make installthen 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:~$
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 pyphantom.pyThis is what the first release 0.0.2 looks
like:

and here is the current 0.0.3 release:

running a plugin which prints 'Ola Mundo!'
in the Debug I/O.
tags:




