
| Current Path : /usr/share/doc/python3-notify2/examples/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //usr/share/doc/python3-notify2/examples/basic.py |
#!/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()