Questions tagged [pynotify]
39 questions
2
votes
2 answers
How to set a local image in pynotify?
If I run the following in python in Ubuntu 10.04:
>>> import pynotify
>>> p = pynotify.Notification ("Notice","","/home/george/Pictures/test.png")
>>> p.show()
true
The message displays as expected, except the image does not appear in the OSD. How…

Nathan Osman
- 71,149
- 71
- 256
- 361
2
votes
1 answer
Weird pynotify behaviour in Ubuntu 9.10
I wrote a small app and I am using pynotify to show some messages to the user.
It all works fine here in arch, but when I tested it in Ubuntu, the behaviour was very weird.
Because of the way Ubuntu shows notifications (as what seems to be a rip of…

Flávio Amieiro
- 41,644
- 8
- 32
- 24
2
votes
1 answer
Is there a python-notify module for python3.2?
I have put together a simple time difference python script with whatever I know and it works fine with Python 2.7.3. The script finds the time difference and then sends a desktop notification in Ubuntu using python-notify.
$ cat timediff.py
import…

jokerdino
- 2,047
- 1
- 25
- 31
1
vote
2 answers
pynotify: "closed" signal callback never fired
I'm trying to write a program with pynotify, the Python bindings for libnotify. I want to bring up a critical notification at some point and have it updated every few seconds as information changes, until the user clicks it away. This all works…

tremby
- 9,541
- 4
- 55
- 74
1
vote
1 answer
How can I read the title, text and icon name from a pynotify.Notification?
If I have a pynotify.Notification object like:
n = pynotify.Notification('title', 'content', 'icon')
How can I read the title (to give 'title'), the text body (to give 'content') and the icon (to give 'icon')?

david4dev
- 4,854
- 2
- 28
- 35
1
vote
1 answer
Is it possible to change the title of a notification?
Is it possible to change the title of a pynotify.Notification? If so what is the method call to use?
Also, it is possible to merge notifications using set_hint_string('append', ''). Is it possible to change a title and keep them merged.
I want…

david4dev
- 4,854
- 2
- 28
- 35
1
vote
2 answers
Pynotify notify not recognizing "init" module in python
I downloaded the "pynotify" package using pip.
After running the code the error is "module 'pynotify' has no attribute 'init'"
Thank You for the help.

Manu
- 19
- 2
1
vote
1 answer
What does pynotify.init stand for?
I haven't find a documentation about pynotify, so I don't know what pynotify.init() function stands for.

xRobot
- 25,579
- 69
- 184
- 304
1
vote
3 answers
I have already installed pynotify, still getting error no module named pynotify
I have already installed pynotify using :
pip install py-notify
When I re-run this it shows :
Requirement already satisfied (use --upgrade to upgrade).
I also tried :
pip install --upgrade py-notify
but it shows :
Requirement already…

Parth Shihora
- 75
- 2
- 8
1
vote
1 answer
How can I copy a remote image over HTTP to gtk.gdk.pixbuf by Python?
this is first post here and I am a noob programmer.
This may be a stupid question.
I'd like to create a personal Twitter notifier on GNOE Desktop. And I've decided to use pynotify and Tweepy.
Now I just want to make pynotify show Twitter user's…

Japboy
- 2,699
- 5
- 27
- 28
1
vote
1 answer
pynotify doesn't work with daemon
I am trying to create small notify daemon
pynotify works in main thread
But pynotify does not work in daemon run-cycle. After show method program just waits something
I took daemon sample…

Daiver
- 1,488
- 3
- 18
- 47
1
vote
1 answer
Pynotify not working Jython
I am trying to build a Python application that connects to Oracle database and show notifications. Now loops and everything is working ok but accessing the Oracle database seems to be impossible.
I researched and found out that there are two ways…

Chan
- 2,601
- 6
- 28
- 45
0
votes
2 answers
pynotify in python script go wrong when running with sudo in KDE
I just want to show notification in KDE environment.So i tried
pynotifytest.py
from pynotify import *
init("test")
Notification("test", "test").show()
then i run sudo python pynotifytest.py,the error i got was:
No protocol…

Maple
- 138
- 1
- 7
0
votes
1 answer
Pynotify runs fine interactively, but crashes when run programmatically (on Fedora 13)
I am attempting to use pynotify for a small project, but am having a strange problem on my Fedora 13 machine. It appears that when pynotify is run programmatically it crashes when show() is called - however if I type that line myself it runs fine! I…

Stephen
- 6,027
- 4
- 37
- 55
0
votes
1 answer
List of connectable events of gi.repository.Notify object in Python
I need to list all available connectable events which can be connected with Python gi.repository.Notify object eg. obj.connect("event", callback_fun). How do I print list of "connectable" events of gi.repository.Notify object? I have tried with…

Yogesh
- 453
- 1
- 4
- 12