Package screenlets :: Module utils :: Class Notifier
[hide private]
[frames] | no frames]

Class Notifier

source code

object --+
         |
        Notifier

A simple and conveniet wrapper for the notification-service. Allows screenlets to easily pop up notes with their own icon (if any).

Instance Methods [hide private]
 
__init__(self, screenlet=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
notify(self, message, title='', icon='', timeout=-1, screenlet=None)
Send a notification to org.freedesktop.Notifications.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, screenlet=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

notify(self, message, title='', icon='', timeout=-1, screenlet=None)

source code 

Send a notification to org.freedesktop.Notifications. The message should contain the text you want to display, title may define a title (summary) for the message, icon can be the full path to an icon, timeout can be set to the desired displaying time in milliseconds.