X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FTools%2FNotifications.py;h=0410a4e2d18bcfaa4fe55995829b6c5cc6786a84;hp=26c2a607f98aa85135784346599c025fc6bc997f;hb=9d9d69d8242d27915c95cb794bd4e7a93759b6db;hpb=b6824cea2e7d16cff119966b040aa61b2d9b1505 diff --git a/lib/python/Tools/Notifications.py b/lib/python/Tools/Notifications.py index 26c2a60..0410a4e 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, close_on_any_key = True)