From 3bb123519259a57b81ee84e2632e1ef0e2137399 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 29 Sep 2005 22:10:55 +0000 Subject: add FixedMenu --- lib/python/Screens/FixedMenu.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/python/Screens/FixedMenu.py (limited to 'lib/python/Screens/FixedMenu.py') diff --git a/lib/python/Screens/FixedMenu.py b/lib/python/Screens/FixedMenu.py new file mode 100644 index 00000000..d2d08048 --- /dev/null +++ b/lib/python/Screens/FixedMenu.py @@ -0,0 +1,23 @@ +from Screen import Screen +from Menu import MenuList +from Components.ActionMap import ActionMap +from Components.Header import Header + +class FixedMenu(Screen): + def okbuttonClick(self): + selection = self["menu"].getCurrent() + selection[1]() + + def __init__(self, session, title, list): + Screen.__init__(self, session) + + self["menu"] = MenuList(list) + + self["actions"] = ActionMap(["OkCancelActions"], + { + "ok": self.okbuttonClick, + "cancel": self.close + }) + + self["title"] = Header(title) + -- cgit v1.2.3