projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
translate
[vuplus_dvbapp]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index
2a7eb9a
..
745c47c
100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-1,6
+1,8
@@
from enigma import *
from tools import *
from enigma import *
from tools import *
+from Components.Language import language
+
import traceback
import Screens.InfoBar
import traceback
import Screens.InfoBar
@@
-13,6
+15,8
@@
from Navigation import Navigation
from skin import readSkin, applyAllAttributes
from skin import readSkin, applyAllAttributes
+from Components.config import configfile
+
had = dict()
def dump(dir, p = ""):
had = dict()
def dump(dir, p = ""):
@@
-88,7
+92,11
@@
class Session:
def create(self, screen, arguments):
# creates an instance of 'screen' (which is a class)
def create(self, screen, arguments):
# creates an instance of 'screen' (which is a class)
- return screen(self, *arguments)
+ try:
+ return screen(self, *arguments)
+ except TypeError, x:
+ errstr = "Screen %s(%s): %s" % (str(screen), str(arguments), str(x))
+ raise TypeError(errstr)
def instantiateDialog(self, screen, *arguments):
# create dialog
def instantiateDialog(self, screen, *arguments):
# create dialog
@@
-163,6
+171,8
@@
def runScreenTest():
runMainloop()
runMainloop()
+ configfile.save()
+
session.nav.shutdown()
return 0
session.nav.shutdown()
return 0
@@
-201,22
+211,3
@@
except:
traceback.print_exc(file=sys.stdout)
quitMainloop(5)
print '-'*60
traceback.print_exc(file=sys.stdout)
quitMainloop(5)
print '-'*60
-
-# now, run the mainloop
-
-#pt = eDebugClassPtr()
-#eDebugClass.getDebug(pt, 12)
-#p = pt.__deref__()
-#print pt.x
-#print p.x
-#print "removing ptr..."
-#pt = 0
-#print "now"
-#print "p is " + str(p)
-#print p.x
-#p = 0
-#
-#bla = eDebugClass()
-#bla = eDebugClass(2)
-#
-