View Full Version : Python Desktop Applets In OS2008 ?
Hi !
I always wanted to write my own desktop applets in python. But it wasn't possible so far. Does anyone know if it should be possible with OS2008 ?
I followed the directions from here http://blogs.gnome.org/lucasr/2007/04/03/hildon-desktop-plugin-howto/
but i can't seem to find the python lib "hildondesktop"...
Any suggestions ?
Khertan
11-21-2007, 06:28 AM
binding isn't available yet.
If i understand lucasr is the developpers of this binding.
yerga
11-21-2007, 06:30 AM
python-hildondesktop hasn't been released yet.
I hope that they will release it soon. Really, I want try it.
Code is here: https://stage.maemo.org/svn/maemo/projects/haf/trunk/python-hildondesktop/
I tried compile it, and it was succesful, the hildondesktop module worked, but the python applet_loader shows an error, and it doesn't load the python applets.
Khertan
12-05-2007, 11:19 AM
I ve contacted lucasr, it seem's that his binding aren't the official, but he ll try to release a package to extras (maybe extras-devel) this week.
yerga
12-05-2007, 02:20 PM
It will be perfect. Thanks.
Any news on this ? the lib still doesn't seem to be there... :(
Khertan
12-07-2007, 05:14 PM
No ... no news ... no news from lucasr
That's too bad. That was the one thing i was looking forward to the most while waiting for OS2008.
Khertan
12-07-2007, 06:22 PM
same same
Khertan
12-10-2007, 05:04 PM
No one seems to interest it anymore.
I ve successfully compiled from svn, but doesn't seems to work.
No answers from lucasr.
https://garage.maemo.org/tracker/?func=detail&atid=229&aid=1736&group_id=40
This really sucks... Lets just develop our own python based desktop with plug-in architecture :)
Khertan
12-10-2007, 05:57 PM
I'm learning ruby now ...
Has anyone opened a feature request for this in Bugzilla? If everyone who has posted in this thread voted, it should get some attention.
This really sucks... Lets just develop our own python based desktop with plug-in architecture :)
Are you following the iTablet work? There has been discussion about moving it in that direction.
Khertan
12-11-2007, 03:33 AM
I ve opened a request in python bugzilla tracker ...
Here :
https://garage.maemo.org/tracker/index.php?func=detail&aid=1736&group_id=40&atid=229
Why is that bug closed ??
Khertan
12-11-2007, 04:43 AM
Read the comment ...
yerga
12-11-2007, 05:17 AM
I think like Lauro. Pymaemo guys aren't developping these bindings.
I think the bug request should be in bugs.maemo.org
We should wait for the reply and then decide what to do.
If someone could write the bug now it could be perfect, if no I could write it later.
I think the bug request should be in bugs.maemo.org
Yes, I think that would be better. I probably shouldn't write the bug though because I'm not familiar enough with exactly what is needed.
Khertan
12-11-2007, 10:58 AM
Sorry but i ll not write it !
Khertan
01-14-2008, 07:40 AM
I ve compiled it ... and make two simple home applet (it s work for me, but doesn't seems to work for an other people of #maemo):
deleted
http://khertan.net/maemo/dists/chinook/free/binary-armel/homecpuspeed-0.0.1.armel.deb
http://khertan.net/maemo/dists/chinook/free/binary-armel/homediskfree-0.0.1.armel.deb
deleted
It should be official hildondesktop binding the next week (it s what lmoura say on #maemo)
Khertan
01-14-2008, 02:52 PM
I ve repackage the launcher and the binding :
http://khertan.net/downloads/Experiments/python-hildondesktop_0.0.2-1_armel.deb
http://khertan.net/downloads/Experiments/hildon-desktop-python-loader_0.0.2-1_armel.deb
Khertan
01-22-2008, 08:13 AM
I've also make 3 home applet, HomeIP which display your currect wlan ip, HomeCPU, which display the cpu bogomips, and HomeDiskFree, which display the free disk space available on your device and sd cards.
This home applet haven't any transparency, but i m still studying how to make this.
* http://khertan.net/downloads/Experiments/homeip-0.0.2.armel.deb
* http://khertan.net/downloads/Experiments/homediskfree-0.0.2.armel.deb
* http://khertan.net/downloads/Experiments/homecpuspeed-0.0.2.armel.deb
Hi, Khertan. I was able to install your packages on N800. All your plugins show up in the desktop menu but I can not enable them. Well actually I can check them on in the list but then nothing happens.
I also did test installing my own home plugin and it too shows up on the list but again does nothing.
Tried updating python and libraries but it does not help either. My OS2008 version is from november. Also tried reinstall of the binding and launcher. :confused: Any advice? Is it the OS version?
Khertan
01-23-2008, 07:42 AM
do you have installed the two packages with dpkg -i ?
http://khertan.net/downloads/Experiments/python-hildondesktop_0.0.2-1_armel.deb
http://khertan.net/downloads/Experiments/hildon-desktop-python-loader_0.0.2-1_armel.deb
Yes, I used dpkg. I could try flash newer OS tomorrow. Maybe it clears things.
Update: I flashed in the latest version of OS. Now the home-plugins work ok. :) :D
However... :rolleyes: ... gpsbt is not working anymore, lol. Anyway thanks Khertan! Your example apps help me a lot.
SpiritGeek
02-10-2008, 11:15 PM
Has anyone heard anything more about the official bindings? I just got my N810 this week and I'm chomping at the bit to Pythonize it. :)
Nope... all silent on that front.
I've used the packages provided by Khertan. They work well. :)
While we are at it I'd like to ask something. I was wondering if I could use a window instead of the frame as the 'root' element for the home plugin? Anybody know?
SpiritGeek
02-12-2008, 11:07 PM
I had to give up on the Khertan bindings. While tinkering the desktop crashed several times and it bricked twice.
Khertan
02-13-2008, 06:56 AM
Official binding are now available in extras-devel repository !
TA-t3
02-13-2008, 08:15 AM
[...]and it bricked twice.
Whatever it did, it didn't brick twice.. it can't. After the first bricking you would have had to send it back to the vendor to fix it.
Are there any examples for the official bindings available ?
SpiritGeek
02-14-2008, 09:47 AM
Whatever it did, it didn't brick twice.. it can't. After the first bricking you would have had to send it back to the vendor to fix it.
Sorry, my terminology may not be very precise just yet. I meant that it would no longer boot and I had to re-flash the rootfs to restore it.
seiichiro0185
02-18-2008, 08:05 AM
Are there any examples for the official bindings available ?
I would be interested in this as well!
SpiritGeek
02-18-2008, 04:45 PM
Here's a sample; a desktop button to launch X Terminal:
/usr/share/applications/hildon-home/desktop-applet.desktop
[Desktop Entry]
Name=Demo Desktop Applet
Type=python
X-Path=desktop-applet
/usr/lib/hildon-desktop/desktop-applet.py
import gtk
import hildondesktop
import os
class DesktopApplet(hildondesktop.HomeItem):
def Button_clicked(self, Widget, Data = None):
os.spawnlp(os.P_NOWAIT, "maemo-invoker", "maemo-invoker", "osso-xterm.launch")
def __init__(self):
hildondesktop.HomeItem.__init__(self)
Button = gtk.Button()
Image = gtk.image_new_from_file("/usr/share/icons/hicolor/64x64/apps/terminal.png")
Button.set_image(Image)
Button.connect("clicked", self.Button_clicked)
Button.show()
self.add(Button)
def hd_plugin_get_objects():
plugin = DesktopApplet()
return [plugin]
Make sure you have the required libraries installed:
hildon-desktop-python-loader_0.0.2-1_armel.deb (http://repository.maemo.org/extras-devel/pool/chinook/free/p/python-hildondesktop/hildon-desktop-python-loader_0.0.2-1_armel.deb)
python2.5-hildondesktop_0.0.2-1_armel.deb (http://repository.maemo.org/extras-devel/pool/chinook/free/p/python-hildondesktop/python2.5-hildondesktop_0.0.2-1_armel.deb)
(For some reason those wouldn't install for me just by clicking. I had to download them locally and install with dpgk -i.)
I also posted a similar sample task navigator panel (http://www.internettablettalk.com/forums/showpost.php?p=142609&postcount=5), if you're interested.
Happy coding! :)
McLightning
08-15-2009, 08:20 AM
it says incompatible application package for those libraries
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.