[crossepg] r287 committed - Fixed screen background with rytec and xepgdb update providers. Change...

13 views
Skip to first unread message

cros...@googlecode.com

unread,
Apr 29, 2011, 8:18:11 PM4/29/11
to cros...@googlegroups.com
Revision: 287
Author: san...@skanetwork.com
Date: Fri Apr 29 17:17:24 2011
Log: Fixed screen background with rytec and xepgdb update providers.
Changed also messagebox timeouts
http://code.google.com/p/crossepg/source/detail?r=287

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):

Reply all
Reply to author
Forward
0 new messages