Modified:
/trunk/src/enigma2/python/crossepg_rytec_update.py
/trunk/src/enigma2/python/crossepg_xepgdb_update.py
=======================================
--- /trunk/src/enigma2/python/crossepg_rytec_update.py Fri Apr 29 13:26:48
2011
+++ /trunk/src/enigma2/python/crossepg_rytec_update.py Fri Apr 29 17:17:24
2011
@@ -51,14 +51,22 @@
self.timer = eTimer()
self.timer.callback.append(self.start)
+
+ self.onFirstExecBegin.append(self.firstExec)
+
+ def firstExec(self):
+ if self.isHD:
+
self["background"].instance.setPixmapFromFile("%s/images/background_hd.png" %
(os.path.dirname(sys.modules[__name__].__file__)))
+ else:
+
self["background"].instance.setPixmapFromFile("%s/images/background.png" %
(os.path.dirname(sys.modules[__name__].__file__)))
self.timer.start(100, 1)
def start(self):
if self.load():
self.save(self.config.home_directory + "/providers/")
- self.session.open(MessageBox, _("%d providers updated") %
len(self.sources), type = MessageBox.TYPE_INFO, timeout = 20)
+ self.session.open(MessageBox, _("%d providers updated") %
len(self.sources), type = MessageBox.TYPE_INFO, timeout = 5)
else:
- self.session.open(MessageBox, _("Cannot retrieve rytec sources"), type
= MessageBox.TYPE_ERROR, timeout = 20)
+ self.session.open(MessageBox, _("Cannot retrieve rytec sources"), type
= MessageBox.TYPE_ERROR, timeout = 10)
self.close()
def load(self):
=======================================
--- /trunk/src/enigma2/python/crossepg_xepgdb_update.py Fri Apr 29 13:30:31
2011
+++ /trunk/src/enigma2/python/crossepg_xepgdb_update.py Fri Apr 29 17:17:24
2011
@@ -50,14 +50,22 @@
self.timer = eTimer()
self.timer.callback.append(self.start)
- self.timer.start(100, 1)
-
+
+ self.onFirstExecBegin.append(self.firstExec)
+
+ def firstExec(self):
+ if self.isHD:
+
self["background"].instance.setPixmapFromFile("%s/images/background_hd.png" %
(os.path.dirname(sys.modules[__name__].__file__)))
+ else:
+
self["background"].instance.setPixmapFromFile("%s/images/background.png" %
(os.path.dirname(sys.modules[__name__].__file__)))
+ self.timer.start(100, 1)
+
def start(self):
if self.load():
self.save(self.config.home_directory + "/providers/")
- self.session.open(MessageBox, _("%d providers updated") %
len(self.sources), type = MessageBox.TYPE_INFO, timeout = 20)
+ self.session.open(MessageBox, _("%d providers updated") %
len(self.sources), type = MessageBox.TYPE_INFO, timeout = 5)
else:
- self.session.open(MessageBox, _("Cannot retrieve xepgdb sources"), type
= MessageBox.TYPE_ERROR, timeout = 20)
+ self.session.open(MessageBox, _("Cannot retrieve xepgdb sources"), type
= MessageBox.TYPE_ERROR, timeout = 10)
self.close()
def load(self):