diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-03-26 00:40:43 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-03-26 00:40:43 +0000 |
| commit | 7e931247164eeb0e9044ce9e5350ff06c0bea30c (patch) | |
| tree | 0d5391ca8441a7aa9bb9a3560f8d8a390c2ebd3c /tests/enigma.py | |
| parent | 283c17a74cf11f40b822807f2d9f52644136c749 (diff) | |
| download | enigma2-7e931247164eeb0e9044ce9e5350ff06c0bea30c.tar.gz enigma2-7e931247164eeb0e9044ce9e5350ff06c0bea30c.zip | |
add some more hacks, add test timer
Diffstat (limited to 'tests/enigma.py')
| -rw-r--r-- | tests/enigma.py | 64 |
1 files changed, 62 insertions, 2 deletions
diff --git a/tests/enigma.py b/tests/enigma.py index 9c700ae1..97fcdb90 100644 --- a/tests/enigma.py +++ b/tests/enigma.py @@ -66,8 +66,8 @@ stopped = False def stop(): global stopped -# print "STOP NOW" -# stopped = True + print "STOP NOW" + stopped = True def run(): stoptimer = eTimer() @@ -90,6 +90,48 @@ loadPNG = None addFont = None gRGB = None eWindowStyleSkinned = None +eButton = None +eListboxPythonStringContent = None +eListbox = None +eEPGCache = None +getBestPlayableServiceReference = None + +class eServiceReference: + + isDirectory=1 + mustDescent=2 + canDescent=4 + flagDirectory=isDirectory|mustDescent|canDescent + shouldSort=8 + hasSortKey=16 + sort1=32 + isMarker=64 + isGroup=128 + + def __init__(self, ref): + self.ref = ref + self.flags = 0 + +iRecordableService = None +quitMainloop = None +eAVSwitch = None +eDVBVolumecontrol = None +eDBoxLCD = None + +class eServiceCenter: + @classmethod + def getInstance(self): + return self.instance + + instance = None + + def __init__(self): + eServiceCenter.instance = self + + def info(self, ref): + return None + +eServiceCenter() ##################### ENIGMA CONFIG @@ -101,3 +143,21 @@ my_config = [ Components.config.config.unpickle(my_config) +##################### ENIGMA CHROOT + +import Tools.Directories + +chroot="." + +for (x, (y, z)) in Tools.Directories.defaultPaths.items(): + Tools.Directories.defaultPaths[x] = (chroot + y, z) + +Tools.Directories.defaultPaths[Tools.Directories.SCOPE_SKIN] = ("../data/", Tools.Directories.PATH_DONTCREATE) + +##################### ENIGMA ACTIONS + +class eActionMap: + def __init__(self): + pass + + |
