X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=mytest.py;h=74aa2fd1d5e7d36dda79bc8c619137f1d13408fe;hb=a4a0916f9569f364bb72e5f18e4035cabea9a7d9;hp=5906898083bad49a66a0306d282fe953d4df3ace;hpb=abb278c6414b0992f2472f06c44ee483e36c158c;p=vuplus_dvbapp diff --git a/mytest.py b/mytest.py index 5906898..74aa2fd 100644 --- a/mytest.py +++ b/mytest.py @@ -13,6 +13,8 @@ from Navigation import Navigation from skin import readSkin, applyAllAttributes +from Components.config import configfile + had = dict() def dump(dir, p = ""): @@ -68,7 +70,6 @@ class Session: if self.currentDialog.isTmp: self.currentDialog.doClose() - print sys.getrefcount(self.currentDialog) del self.currentDialog.instance # dump(self.currentDialog) del self.currentDialog @@ -100,7 +101,7 @@ class Session: print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:' print '-'*60 traceback.print_exc(file=sys.stdout) - quitMainloop() + quitMainloop(5) print '-'*60 # read skin data @@ -164,6 +165,8 @@ def runScreenTest(): runMainloop() + configfile.save() + session.nav.shutdown() return 0 @@ -200,24 +203,5 @@ except: print 'EXCEPTION IN PYTHON STARTUP CODE:' print '-'*60 traceback.print_exc(file=sys.stdout) - quitMainloop() + 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) -# -