X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/301bab11f8453a6899153b7be338a352803b22cb..78950dbe85f5eafb3adb817eef742654d1f84e5a:/lib/python/Screens/Menu.py diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index 11b265e3..b773c182 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -7,6 +7,7 @@ from Components.Header import Header from Screens.Setup import Setup from ServiceScan import ServiceScan from ScartLoopThrough import ScartLoopThrough +from HarddiskSetup import HarddiskSelection from Components.Button import Button from Components.Label import Label from Components.ProgressBar import ProgressBar @@ -35,46 +36,18 @@ def doGlobal(screen): # self.openDialog(ScartLoopThrough) # -mdom = xml.dom.minidom.parseString( - """ - - quitMainloop() - self.openDialog(TimerEditList) - - - - - - - - self.openSetup("satconfig") - - - - self.openDialog(ServiceScan) - - - self.openSetup("timezone") - self.openSetup("avsetup") - self.openSetup("rfmod") - - self.openSetup("rc") - self.openSetup("keyboard") - self.openSetup("osd") - self.openSetup("lcd") - - - self.openSetup("parental") - self.openSetup("expert") - - - self.openDialog(About) - - quitMainloop() - quitMainloop() - quitMainloop() - - """) + +# read the skin +try: + # first we search in the current path + menufile = file('data/menu.xml', 'r') +except: + # if not found in the current path, we use the global datadir-path + menufile = file('/usr/share/enigma2/menu.xml', 'r') +mdom = xml.dom.minidom.parseString(menufile.read()) +menufile.close() + + def getValbyAttr(x, attr): for p in range(x.attributes.length):