X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ebf9e4748af73d94cf3de121b6e8c4e8a70d1d13..952b0b0786797f21c603f7e8eaaed69c0e30ef78:/lib/python/Tools/Notifications.py diff --git a/lib/python/Tools/Notifications.py b/lib/python/Tools/Notifications.py index 85452e11..0410a4e2 100644 --- a/lib/python/Tools/Notifications.py +++ b/lib/python/Tools/Notifications.py @@ -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)