from enigma import *
from tools import *
+from Components.Language import language
+
import traceback
import Screens.InfoBar
from skin import readSkin, applyAllAttributes
+from Components.config import configfile
+
had = dict()
def dump(dir, p = ""):
if self.currentDialog.isTmp:
self.currentDialog.doClose()
- print sys.getrefcount(self.currentDialog)
del self.currentDialog.instance
# dump(self.currentDialog)
del self.currentDialog
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
print 'EXCEPTION IN DIALOG INIT CODE, ABORTING:'
print '-'*60
traceback.print_exc(file=sys.stdout)
- quitMainloop()
+ quitMainloop(5)
print '-'*60
# read skin data
runMainloop()
+ configfile.save()
+
session.nav.shutdown()
return 0
import Components.Network
Components.Network.InitNetwork()
+import Components.Lcd
+Components.Lcd.InitLcd()
+
import Components.SetupDevices
Components.SetupDevices.InitSetupDevices()
+import Components.RFmod
+Components.RFmod.InitRFmod()
+
import Components.NimManager
# first, setup a screen
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)
-#
-