From: Felix Domke Date: Thu, 29 Sep 2005 22:10:20 +0000 (+0000) Subject: move out FixedMenu, remove import-all hack, still needs proper fix. X-Git-Tag: 2.6.0~5549 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/dc4baf46885bc1369f995ee739b976ee2759e649 move out FixedMenu, remove import-all hack, still needs proper fix. --- diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index 328c9b39..5d3093ad 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -1,4 +1,4 @@ -#from Screen import * +from Screen import * from Components.MenuList import MenuList from Components.ActionMap import ActionMap from Components.Header import Header @@ -6,19 +6,14 @@ from Components.Button import Button from Components.Label import Label from Components.ProgressBar import ProgressBar -# hack.... dynamically importing all screens -from __init__ import __all__ -for i in __all__: - print "import " + i - if (i is not "Menu" ): - exec "from " + i + " import *" - from enigma import quitMainloop import xml.dom.minidom from xml.dom import EMPTY_NAMESPACE from skin import elementsWithTag +from Screens.Satconfig import Satconfig + from Tools import XMLTools # some screens @@ -122,25 +117,6 @@ class Menu(Screen): a = getValbyAttr(parent, "text") self["title"] = Header(a) -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) - - class MainMenu(Menu): #add file load functions for the xml-file