To install a different version just remove the old version by cd rm -R gpodder-0.8.0.egg-info gpodderĪnd then do a python setup.py install on the new version (also remember to change the file /usr/share/gpodder/gpodder.glade if you need to for things like dialogues etc) Note: above you can see two different versions gpodder-orig and gpodder-hildon in the target filesystem. In the glade file remove the connection:Īnd put it in the new Hildonwindow(self.window) that was just created in gpodder.py like this : self.window = hildon.Window() The gPodder class (self) has its close_gpodder method connected to the destroy signal from the original gPodder Gtk window. #_text( "Welcome to gPodder! Suggestions? Mail to: set up the rendering of the comboAvailable combobox Print "A new %s has been created" % self._class_._name_ Next, add a HildonProgram(self.app) and a HildonWindow(self.window): if libgpodder.isDebugging(): Note: if this errors apt-get install python2.5-hildon python2.5-hildon-dev The following illustrates the import: from libipodsync import gPodder_iPodSync To use Hildon elements, you have to import its module. Start by modifying the gpodder.py file (in the gpodder-orig/src/gpodder directory). The first code change in the porting exercise is to make gPodder use HildonProgram and HildonWindow classes instead of the GtkWindow class. It seems ok but it is not 'Hildonized' yet Xinit /etc/X11/xinit/xinitrc - /usr/bin/Xephyr :2 -host-cursor -screen 1024圆00x32 -dpi 96 -acĮxecuting gpodder in the terminal gave an error of from import DefaultHandler so in the terminal apt-get install python-xml After this executes it executes OK in the terminal so lets test it by clicking the gpodder image and see what happens (to save typing this every time you open a target filesystem shell from moblin you can add this line to. In the target filesystem terminal: export DISPLAY=:0 Maybe gpodder will be ok without too many changes so lets install it by: python setup.py install On the target filesystem change the UI so that it displays the gpodder image and move the expanded gpodder folder to the target filesystem (I renamed it to gpodder-orig) like this: sudo cp -R gpodder-orig /home/ian/Dev/Ume/olpcimage/targets/metahacker/fs/home/ The code changes are made in the gpodder-0.8.0/src/gpodder/gpodder.py file. Get the Source Code and try it out on UMEĭownload and extract the source package from the project's page. GPodder has the following dependencies on Ubuntu:Īpt-get install both of them in the target filesystem. Also that you can change the Flash UI as explained here. You have set up the UME development environment as show here. A great part of the porting effort is spent making an application use and obey the Hildon UI style of windows and menu's gPodder is very lightweight and doesn't have many dependencies. gPodder media aggregator is a podcast receiver/catcher written in Python utilizing PyGTK for its graphical interface. This shows how to port an application (gPodder) to Ubuntu Mobile. This is the canonical URL for this tutorial. This follows on from the tutorial Using a Glade UI with Python to create a UME/Hildon appįor more background info also read the excellent maemo tutorial for porting python applications to the Hildon framework.
0 Comments
Leave a Reply. |