/usr/share/doc/python3-notify2/examples/basic.py is in python3-notify2 0.3-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env python
"""This illustrates the basic functionality of notify2 - creating and displaying
a notification message.
"""
import notify2
# This must be called before using notify2
notify2.init("Demo application")
# A number of stock
n = notify2.Notification("Summary", "Body text goes here",
"notification-message-im") # A stock icon name. For more icon
# options, see icon.py in this folder.
n.show()
|