diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-08-31 01:02:58 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-08-31 01:02:58 +0000 |
| commit | d9d6fde89ffbca9f094e369124d64353916a1e72 (patch) | |
| tree | f25b99cf0f3c9d01c61967f8ccc87db96b20309c /lib/python/Screens/Menu.py | |
| parent | 3ccf7415c88dabce1c2efeb79d7a3daf3a7a8dba (diff) | |
| download | enigma2-d9d6fde89ffbca9f094e369124d64353916a1e72.tar.gz enigma2-d9d6fde89ffbca9f094e369124d64353916a1e72.zip | |
dynamically importing the screens
Diffstat (limited to 'lib/python/Screens/Menu.py')
| -rw-r--r-- | lib/python/Screens/Menu.py | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index b773c182..71d5123f 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -1,21 +1,30 @@ -from Screen import * +#from Screen import * from Components.MenuList import MenuList from Components.ActionMap import ActionMap from Components.Header import Header # hack ... must be made dynamic -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 -from ConfigMenu import * +#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 +#from ConfigMenu import * -from About import * +#from About import * -from TimerEdit import * +#from Network import * + +#from TimerEdit import * + +# 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 @@ -37,7 +46,7 @@ def doGlobal(screen): # <item text="Sleep Timer"></item> -# read the skin +# read the menu try: # first we search in the current path menufile = file('data/menu.xml', 'r') |
