servicemp3.cpp: more simple/flexible streaming detection
[enigma2.git] / lib / python / Tools / Notifications.py
index 85452e11a3301d3b3b6a4cf3aac9e03180fa5c89..0410a4e2d18bcfaa4fe55995829b6c5cc6786a84 100644 (file)
@@ -3,7 +3,6 @@ notifications = [ ]
 
 notificationAdded = [ ]
 
-
 # notifications which are currently on screen (and might be closed by similiar notifications)
 current_notifications = [ ]
 
@@ -37,9 +36,10 @@ def RemovePopup(id):
                        print "(found in current notifications)"
                        x[1].close()
 
+from Screens.MessageBox import MessageBox
+
 def AddPopup(text, type, timeout, id = None):
        if id is not None:
                RemovePopup(id)
-       from Screens.MessageBox import MessageBox
        print "AddPopup, id =", id
-       AddNotificationWithID(id, MessageBox, text = text, type = type, timeout = timeout)
+       AddNotificationWithID(id, MessageBox, text = text, type = type, timeout = timeout, close_on_any_key = True)