PDA

View Full Version : Python Tray Notification



abeisgreat
October 25th, 2008, 05:40 AM
I already have it setup so my python + pygtk app shows up in the notify area, but now I want it to pop up a message like this one

http://www.ubuntu.com/files/u3/update-notification.png

except you know with my custom message.

Thanks Abe

imdano
October 25th, 2008, 07:55 AM
You want notify-python (the Ubuntu package name is python-notify), which are python bindings for libnotify. The project page is here: http://www.galago-project.org/news/index.php

abeisgreat
October 25th, 2008, 08:49 AM
You want notify-python (the Ubuntu package name is python-notify), which are python bindings for libnotify. The project page is here: http://www.galago-project.org/news/index.php

I knew that! I have seen that package around. But was never sure if that was really what I needed. Thanks anyway.

do you know of any good tuts or examples for these packages?

Edit: I've got it up and working fine, still some good refererences would be nice

imdano
October 25th, 2008, 07:03 PM
There isn't much documentation online that I know of (or at least there wasn't when I last checked), but there should be a bunch of examples in /usr/share/doc/python-notify/examples.

abeisgreat
October 25th, 2008, 09:53 PM
There isn't much documentation online that I know of (or at least there wasn't when I last checked), but there should be a bunch of examples in /usr/share/doc/python-notify/examples.


Awesome thanks

loell
October 25th, 2008, 11:12 PM
and one more thing, you'll gonna have to install the module before browsing the samples

python-notify (apt:python-notify)

abeisgreat
October 25th, 2008, 11:14 PM
and one more thing, you'll gonna have to install the module before browsing the samples

python-notify (apt:python-notify)


its included in hardy heron ;)

loell
October 25th, 2008, 11:15 PM
its included in hardy heron ;)

awwwts.. didn't notice that. :)

abeisgreat
October 26th, 2008, 12:32 AM
its included in hardy heron ;)

Ok question number 2, I need to grab an image off the web to use as the icon in the py notify, I have no issue grabbing the url of the image, but I need to know, is it possible to use the image right off the server? or do I have to store it locally then use it?

loell
October 26th, 2008, 01:00 AM
/usr/share/doc/python-notify/examples/test-image.py

is the perfect example.

abeisgreat
October 26th, 2008, 02:35 AM
/usr/share/doc/python-notify/examples/test-image.py

is the perfect example.

I can load it from a local file just fine but Id like to load it from an http:// address.