File: basic.py

package info (click to toggle)
python-notify2 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 451; makefile: 145; sh: 7
file content (15 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download | duplicates (5)
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()