| 1 | from enigma import getDesktop
|
|---|
| 2 |
|
|---|
| 3 | from Screens.Screen import Screen
|
|---|
| 4 |
|
|---|
| 5 | from Components.Label import Label
|
|---|
| 6 | from Components.Button import Button
|
|---|
| 7 | from Components.Pixmap import Pixmap
|
|---|
| 8 | from Components.ActionMap import ActionMap
|
|---|
| 9 |
|
|---|
| 10 | from Tools.LoadPixmap import LoadPixmap
|
|---|
| 11 |
|
|---|
| 12 | from crossepglib import *
|
|---|
| 13 | from crossepg_locale import _
|
|---|
| 14 |
|
|---|
| 15 | import os
|
|---|
| 16 | import sys
|
|---|
| 17 |
|
|---|
| 18 | class CrossEPG_About(Screen):
|
|---|
| 19 | def __init__(self, session):
|
|---|
| 20 | self.session = session
|
|---|
| 21 | if (getDesktop(0).size().width() < 800):
|
|---|
| 22 | skin = "%s/skins/about_sd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
|
|---|
| 23 | else:
|
|---|
| 24 | skin = "%s/skins/about_hd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
|
|---|
| 25 | f = open(skin, "r")
|
|---|
| 26 | self.skin = f.read()
|
|---|
| 27 | f.close()
|
|---|
| 28 |
|
|---|
| 29 | Screen.__init__(self, session)
|
|---|
| 30 |
|
|---|
| 31 | self.config = CrossEPG_Config()
|
|---|
| 32 | self.config.load()
|
|---|
| 33 |
|
|---|
| 34 | self["about"] = Label("")
|
|---|
| 35 | self["rytec_pix"] = Pixmap()
|
|---|
| 36 | self["rytec_text"] = Label("")
|
|---|
| 37 | self["krkadoni_pix"] = Pixmap()
|
|---|
| 38 | self["krkadoni_text"] = Label("")
|
|---|
| 39 |
|
|---|
| 40 | self["actions"] = ActionMap(["SetupActions", "ColorActions"],
|
|---|
| 41 | {
|
|---|
| 42 | "red": self.quit,
|
|---|
| 43 | "cancel": self.quit
|
|---|
| 44 | }, -2)
|
|---|
| 45 |
|
|---|
| 46 | self["key_red"] = Button(_("Back"))
|
|---|
| 47 | self["key_green"] = Button("")
|
|---|
| 48 | self["key_yellow"] = Button("")
|
|---|
| 49 | self["key_blue"] = Button("")
|
|---|
| 50 |
|
|---|
| 51 | try:
|
|---|
| 52 | from version import version
|
|---|
| 53 | except Exception, e:
|
|---|
| 54 | version = "unknow version"
|
|---|
| 55 |
|
|---|
| 56 | credit = "SIFTeam CrossEPG %s (c) 2009-2011 Sandro Cavazzoni\n" % version
|
|---|
| 57 | credit += "http://code.google.com/p/crossepg/\n\n"
|
|---|
| 58 | credit += "Application credits:\n"
|
|---|
| 59 | credit += "- Sandro Cavazzoni aka skaman (main developer)\n"
|
|---|
| 60 | credit += "- Ambrosa (scripts developer)\n"
|
|---|
| 61 | credit += "- Sergiotas (mhw2epgdownloader author)\n"
|
|---|
| 62 | credit += "- u Killer Bestia (server side application maintainer)\n"
|
|---|
| 63 | credit += "- Spaeleus (italian translations)\n"
|
|---|
| 64 | credit += "- Bodyan (ukrainian translations)\n"
|
|---|
| 65 | credit += "- Kosmacz (polish translations)\n"
|
|---|
| 66 | credit += "- Ku4a (russian translations)\n\n"
|
|---|
| 67 | credit += "Sources credits:\n"
|
|---|
| 68 | credit += "- Rytec http://www.rytec.be (xmltv providers for many countries)\n"
|
|---|
| 69 | credit += "- Krkadoni http://www.krkadoni.com/ (xmltv provider for Ex Yugoslavia)\n"
|
|---|
| 70 | credit += "- Bodyan and dillinger http://linux-sat.tv/ (xmltv provider for ex USSR channels)\n"
|
|---|
| 71 | credit += "- Devilcosta http://sgcpm.com/ (xmltv provider for nova channels in greek and english)"
|
|---|
| 72 | self["about"].setText(credit)
|
|---|
| 73 |
|
|---|
| 74 | self.onFirstExecBegin.append(self.setImages)
|
|---|
| 75 |
|
|---|
| 76 | def setImages(self):
|
|---|
| 77 | self["rytec_pix"].instance.setPixmapFromFile("%s/images/rytec.png" % (os.path.dirname(sys.modules[__name__].__file__)))
|
|---|
| 78 | self["krkadoni_pix"].instance.setPixmapFromFile("%s/images/krkadoni.png" % (os.path.dirname(sys.modules[__name__].__file__)))
|
|---|
| 79 |
|
|---|
| 80 | def quit(self):
|
|---|
| 81 | self.close()
|
|---|
| 82 |
|
|---|