Active Topics

 


Reply
Thread Tools
dwould's Avatar
Posts: 529 | Thanked: 262 times | Joined on Dec 2008 @ Eastleigh, Hampshire, UK
#1
I have been looking all over trying to find out how to trigger a notification from python of the type like an IM/Email etc.
However whilst I can find the C APi doc, I'm afraid I've failed to guess what the python invocation would be.
I can see there is a python-notify but haven't found any actual python code that I could use to figure this out.

Any pointers would be most welcome
__________________
----------
N900
http://danielwould.wordpress.com
Check out Witter, a twitter client for N900
http://danielwould.wordpress.com/witter

If Witter isn't working for you, eg crashes/doesn't start, gives errors etc etc. Please run it from x-term using:
run-standalone.sh python2.5 /opt/witter/witter.py

This will generate diagnostic output. Without this I cannot help you.
 
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#2
There are some simple examples on the notify-python repository:

http://trac.galago-project.org/brows...y-python/tests

But I think you should first try using the Maemo native notification mecanisms, like the Hildon notifications (if you are using python-hildon already, this is the best option IMHO), or creating a simple status bar widget.

For hildon notification examples, see:

http://wiki.maemo.org/PyMaemo/UITuto...cation_widgets
http://gitorious.org/pymaemo/python-...ldon-banner.py

For a status bar example:

http://wiki.maemo.org/PyMaemo/Hildon...mantle_only.29
__________________
Anderson Lizardo
 
dwould's Avatar
Posts: 529 | Thanked: 262 times | Joined on Dec 2008 @ Eastleigh, Hampshire, UK
#3
Originally Posted by lizardo View Post
There are some simple examples on the notify-python repository:

http://trac.galago-project.org/brows...y-python/tests

But I think you should first try using the Maemo native notification mecanisms, like the Hildon notifications (if you are using python-hildon already, this is the best option IMHO), or creating a simple status bar widget.

For hildon notification examples, see:

http://wiki.maemo.org/PyMaemo/UITuto...cation_widgets
http://gitorious.org/pymaemo/python-...ldon-banner.py

For a status bar example:

http://wiki.maemo.org/PyMaemo/Hildon...mantle_only.29
thanks for the links. unless I'm mistaken, python-notify is the only way to flash the led? i use the other hildon note/banner notifications where appropriate. but for direct messages and mentions I really want to cause the same behaviour as receiving an IM or email.

will try out some of the examples later
__________________
----------
N900
http://danielwould.wordpress.com
Check out Witter, a twitter client for N900
http://danielwould.wordpress.com/witter

If Witter isn't working for you, eg crashes/doesn't start, gives errors etc etc. Please run it from x-term using:
run-standalone.sh python2.5 /opt/witter/witter.py

This will generate diagnostic output. Without this I cannot help you.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
Originally Posted by dwould View Post
thanks for the links. unless I'm mistaken, python-notify is the only way to flash the led? i use the other hildon note/banner notifications where appropriate. but for direct messages and mentions I really want to cause the same behaviour as receiving an IM or email.

will try out some of the examples later
No. Flashing of the LED is done by D-Bus messages to MCE or by manipulating the LED sysfs files directly.

I used hildon-notify in Transmission (http://twitpic.com/k8e51) which got me the "IM-type" notifications, but that's just a pointless wrapper around libnotify so python-notify should work.

Last edited by qwerty12; 2010-01-31 at 09:38.
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:04.