Author: | Neil Wallace (neil@openmolar.com) |
---|
This class is how I get openmolar to give notifications to the user.
I wanted a non-intrusive popup to appear in the top-right corner of both the client and admin applications, very similar to the notification system of the gnome desktop.
However.. openmolar is cross-platform, and the notification standards of all desktops seem to be a moving target. So I wrote my own version.
The Advisor has various levels of imoprtance.
I may experiment with pynotify or similar in future to provide some of this functionality.
Bases: PyQt4.QtGui.QWidget
provides various notifications to the user
inform the user of events - warning level0 = no interaction popup. warning level 1 advisory, requires user response. warning level 2 warning, and logged in output.
convenience function which calls advise with a default of 1. useful when connected to a signal
convenience function which calls advise with a default of 1. useful when connected to a signal