X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FMessageBox.py;h=f3538b7b730090e71cd6e1fdc4041ec39ec33eee;hp=1048568066225650a781dc6c8d52c2b805dab98b;hb=HEAD;hpb=574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index 1048568..f3538b7 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -12,9 +12,11 @@ class MessageBox(Screen): TYPE_WARNING = 2 TYPE_ERROR = 3 - def __init__(self, session, text, type = TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True): + def __init__(self, session, text, type = TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True, msgBoxID = None): self.type = type Screen.__init__(self, session) + + self.msgBoxID = msgBoxID self["text"] = Label(text) self["Text"] = StaticText(text) @@ -88,6 +90,7 @@ class MessageBox(Screen): def stopTimer(self): if self.timerRunning: del self.timer + self.onExecBegin.remove(self.startTimer) self.setTitle(self.origTitle) self.timerRunning = False