aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-09-29 22:10:20 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-09-29 22:10:20 +0000
commitdc4baf46885bc1369f995ee739b976ee2759e649 (patch)
treee59e35529c5965f29c5e7e60af4b632e37508de4 /lib/python
parent7b25522dc35a9d942101750e9eb5135867e6bcce (diff)
downloadenigma2-dc4baf46885bc1369f995ee739b976ee2759e649.tar.gz
enigma2-dc4baf46885bc1369f995ee739b976ee2759e649.zip
move out FixedMenu, remove import-all hack, still needs proper fix.
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Menu.py30
1 files changed, 3 insertions, 27 deletions
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