コード例 #1
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     if getBoxType() in ('vuduo', 'sf4008'):
         self.stringlength = 16
     else:
         self.stringlength = 12
コード例 #2
0
	def __init__(self, session):
		Renderer.__init__(self)
		
		self.showiframe = Showiframe()
		self.session = session
		self.poll_timer = eTimer()
		self.poll_timer.callback.append(self.poll)
コード例 #3
0
    def __init__(self):
        Renderer.__init__(self)
        self.Position = self.Size = None
        self.decoder = 0
        if SystemInfo.get("NumVideoDecoders", 1) > 1:
            self.decoder = 1
        self.fb_w = getDesktop(0).size().width()
        self.fb_h = getDesktop(0).size().height()
        self.fb_size = None
        self._del_pip = False
        self._can_extended_PiG = False
        self.first_PiG = False
        self.is_channelselection = False

        if config.plugins.KravenHD.SkinResolution.value == "hd":
            self.x2 = 69
            self.y2 = 354
            self.w2 = 363
            self.h2 = 204
        else:
            self.x2 = 103
            self.y2 = 530
            self.w2 = 544
            self.h2 = 306
        self.x2 = format(int(float(self.x2) / self.fb_w * 720.0), 'x').zfill(8)
        self.y2 = format(int(float(self.y2) / self.fb_h * 576.0), 'x').zfill(8)
        self.w2 = format(int(float(self.w2) / self.fb_w * 720.0), 'x').zfill(8)
        self.h2 = format(int(float(self.h2) / self.fb_h * 576.0), 'x').zfill(8)
        self.fb_size2 = [self.w2, self.h2, self.x2, self.y2]

        return
コード例 #4
0
	def __init__(self, session):
		Renderer.__init__(self)
		
		self.showiframe = Showiframe()
		self.session = session
		self.poll_timer = eTimer()
		self.poll_timer.callback.append(self.poll)
コード例 #5
0
 def __init__(self):
     Poll.__init__(self)
     Renderer.__init__(self)
     self.path = 'module'
     self.slot = 0
     self.nameCache = {}
     self.pngname = ""
コード例 #6
0
	def __init__(self):
		Renderer.__init__(self)
		self.__position = 0
		self.__seek_position = 0
		self.__length = 0
		self.__seek_enable = 0
		self.__cutlist = [ ]
コード例 #7
0
 def __init__(self):
     Renderer.__init__(self)
     #               self.path = 'AnimatedWeatherPixmap'
     if fileExists('/media/hdd/AnimatedWeatherPixmap'):
         self.path = '/media/hdd/AnimatedWeatherPixmap'
     elif fileExists('/media/usb/AnimatedWeatherPixmap'):
         self.path = '/media/usb/AnimatedWeatherPixmap'
     elif fileExists('/media/sdb1/AnimatedWeatherPixmap'):
         self.path = '/media/sdb1/AnimatedWeatherPixmap'
     elif fileExists('/media/sdb2/AnimatedWeatherPixmap'):
         self.path = '/media/sdb2/AnimatedWeatherPixmap'
     else:
         self.path = None
     self.pixdelay = 100
     self.control = 1
     self.ftpcontrol = 0
     self.slideicon = None
     self.txt_naim = {
         '17': '0',
         '35': '0',
         '16': '14',
         '42': '14',
         '43': '14',
         '40': '18',
         '24': '23',
         '29': '27',
         '33': '27',
         '30': '28',
         '34': '28',
         '38': '37',
         '25': '44'
     }
コード例 #8
0
 def __init__(self):
     Poll.__init__(self)
     Renderer.__init__(self)
     self.path = 'emu'
     self.nameCache = {}
     self.pngname = ''
     self.picon_default = "picon_default.png"
コード例 #9
0
	def __init__(self):
		Renderer.__init__(self)
		VariableText.__init__(self)
		self.eDVBCIUIInstance = eDVBCI_UI.getInstance()
		self.eDVBCIUIInstance and self.eDVBCIUIInstance.ciStateChanged.get().append(self.ciModuleStateChanged)
		self.text = ""
		self.allVisible = False
コード例 #10
0
ファイル: LcdPicon.py プロジェクト: kuba1233/enigma2
 def __init__(self):
     Renderer.__init__(self)
     self.PicLoad = ePicLoad()
     self.PicLoad.PictureData.get().append(self.updatePicon)
     self.piconsize = (0, 0)
     self.pngname = ""
     self.lastPath = None
     if getDisplayType() in ('bwlcd255',
                             'bwlcd140') and not SystemInfo["grautec"]:
         pngname = findLcdPicon("lcd_picon_default")
     else:
         pngname = findLcdPicon("picon_default")
     self.defaultpngname = None
     if not pngname:
         if getDisplayType() in ('bwlcd255',
                                 'bwlcd140') and not SystemInfo["grautec"]:
             tmp = resolveFilename(SCOPE_ACTIVE_SKIN,
                                   "lcd_picon_default.png")
         else:
             tmp = resolveFilename(SCOPE_ACTIVE_SKIN, "picon_default.png")
         if pathExists(tmp):
             pngname = tmp
         else:
             if getDisplayType() in (
                     'bwlcd255', 'bwlcd140') and not SystemInfo["grautec"]:
                 pngname = resolveFilename(SCOPE_ACTIVE_SKIN,
                                           "lcd_picon_default.png")
             else:
                 pngname = resolveFilename(SCOPE_ACTIVE_SKIN,
                                           "picon_default.png")
     if os.path.getsize(pngname):
         self.defaultpngname = pngname
コード例 #11
0
 def __init__(self):
     Renderer.__init__(self)
     self.backgroundColor = parseColor("#ff000000")
     self.nocColor = parseColor("#008f8f8f")
     self.emmColor = parseColor("#00bab329")
     self.ecmColor = parseColor("#00009a00")
     self.font = gFont("Regular", 20)
コード例 #12
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.ena = True
     try:
         self.ena = config.plugins.stein17skins
     except:
         pass
     if not self.ena:
         try:
             self.allSat = {}
             satellites = parse("/etc/tuxbox/satellites.xml").getroot()
             if satellites is not None:
                 for x in satellites.findall("sat"):
                     name = x.get("name") or None
                     position = x.get("position") or None
                     if name is not None and position is not None:
                         position = "%s.%s" % (position[:-1], position[-1:])
                         if position.startswith("-"):
                             position = "%sW" % position[1:]
                         else:
                             position = "%sE" % position
                         if position.startswith("."):
                             position = "0%s" % position
                         self.allSat[position] = str(name.encode("utf-8"))
         except:
             pass
コード例 #13
0
ファイル: LcdPicon.py プロジェクト: henrylicious/test
	def __init__(self):
		Renderer.__init__(self)
		self.PicLoad = ePicLoad()
		self.PicLoad.PictureData.get().append(self.updatePicon)
		self.piconsize = (0, 0)
		self.pngname = ""
		self.lastPath = None
		if getBoxType() in ('vuultimo', 'et10000', 'mutant2400', 'xpeedlx3', 'quadbox2400', 'atemionemesis', 'dm7020hd', 'dm7080'):
			pngname = findLcdPicon("lcd_picon_default")
		else:
			pngname = findLcdPicon("picon_default")
		self.defaultpngname = None
		if not pngname:
			if getBoxType() in ('vuultimo', 'et10000', 'mutant2400', 'xpeedlx3', 'quadbox2400', 'atemionemesis', 'dm7020hd', 'dm7080'):
				tmp = resolveFilename(SCOPE_ACTIVE_SKIN, "lcd_picon_default.png")
			else:
				tmp = resolveFilename(SCOPE_ACTIVE_SKIN, "picon_default.png")
			if pathExists(tmp):
				pngname = tmp
			else:
				if getBoxType() == 'vuultimo':
					pngname = resolveFilename(SCOPE_ACTIVE_SKIN, "lcd_picon_default.png")
				else:
					pngname = resolveFilename(SCOPE_ACTIVE_SKIN, "picon_default.png")
		if os.path.getsize(pngname):
			self.defaultpngname = pngname
コード例 #14
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.EmptyText = ''
     self.fillTimer = eTimer()
     self.fillTimer.timeout.get().append(self.__fillText)
     self.backText = ''
コード例 #15
0
    def __init__(self):
        Renderer.__init__(self)
        VariableText.__init__(self)

        # self.nxEvnt = 0
        self.snglEvnt = 0
        self.epgcache = eEPGCache.getInstance()
コード例 #16
0
    def __init__(self):
        Renderer.__init__(self)

        self.nxEvnt = 0
        self.nxEvntUsed = ""
        self.delayPicTime = 100
        self.epgcache = eEPGCache.getInstance()
コード例 #17
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.moveTimerText = None
     self.delayTimer = None
     if getBoxType() in ("vuduo", "sf4008", "beyonwizu4"):
         self.stringlength = 16
     else:
         self.stringlength = 12
コード例 #18
0
 def __init__(self):
     Renderer.__init__(self)
     self.mTime = 0
     self.swap = False
     self.L4Ltimer = eTimer()
     if DPKG:
         self.L4Ltimer_conn = self.L4Ltimer.timeout.connect(self.changed)
     else:
         self.L4Ltimer.callback.append(self.changed)
コード例 #19
0
 def __init__(self):
     Renderer.__init__(self)
     self.PicLoad = ePicLoad()
     self.PicLoad.PictureData.get().append(self.updatePicon)
     self.piconsize = (0, 0)
     self.pngname = ""
     self.lastPath = None
     pngname = findPicon("picon_default")
     self.defaultpngname = resolveFilename(SCOPE_ACTIVE_SKIN, "picon_default.png")
コード例 #20
0
 def __init__(self):
     Renderer.__init__(self)
     self.fColor = gRGB(255, 255, 255, 0)
     self.fColors = gRGB(255, 0, 0, 0)
     self.fColorm = gRGB(255, 0, 0, 0)
     self.fColorh = gRGB(255, 255, 255, 0)
     self.bColor = gRGB(0, 0, 0, 255)
     self.forend = -1
     self.linewidth = 1
コード例 #21
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.moveTimerText = None
     self.delayTimer = None
     if BoxInfo.getItem("model") in ("vuduo", "sf4008", "beyonwizu4"):
         self.stringlength = 16
     else:
         self.stringlength = 12
コード例 #22
0
 def __init__(self):
     Poll.__init__(self)
     Renderer.__init__(self)
     self.pngname = ''
     self.pixmaps = 'picon'
     self.pixdelay = 300
     self.control = 0
     self.count = 5
     self.pics = []
コード例 #23
0
    def __init__(self):
        Renderer.__init__(self)

        self.pstrNm = ''
        self.evntNm = ''

        self.nxEvnt = 0
        self.nxEvntUsed = ""
        self.epgcache = eEPGCache.getInstance()
コード例 #24
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.eDVBCIUIInstance = eDVBCI_UI.getInstance()
     self.eDVBCIUIInstance and self.eDVBCIUIInstance.ciStateChanged.get(
     ).append(self.ciModuleStateChanged)
     self.text = ""
     self.allVisible = False
     self.no_visible_state1 = "ciplushelper" in popen("top -n 1").read()
コード例 #25
0
 def __init__(self):
     Renderer.__init__(self)
     self.path = 'piconProv'
     self.nameCache = {}
     self.pngname = ''
     self.pixmaps = []
     self.pixdelay = 1
     self.pics = []
     self.picon_default = "picon_default.png"
コード例 #26
0
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.moveTimerText = None
     self.delayTimer = None
     if getBoxType() in ('vuduo', 'sf4008'):
         self.stringlength = 16
     else:
         self.stringlength = 12
コード例 #27
0
ファイル: Listbox.py プロジェクト: thestormbreaker/enigma2-3
 def __init__(self):
     Renderer.__init__(self)
     self.__content = None
     self.__mode = eListbox.layoutVertical
     self.__wrap_around = False
     self.__selection_enabled = True
     self.__scrollbarMode = "showOnDemand"
     self.__backlogMode = False
     self.__margin = ePoint(0, 0)
     self.__selectionZoom = 1.0
コード例 #28
0
 def __init__(self):
         Poll.__init__(self)
         Renderer.__init__(self)
         if getDesktop(0).size().width() == 1920:
               self.path = 'emu2'
         else:
               self.path = 'emu'
         self.nameCache = {}
         self.pngname = ''
         self.picon_default = "picon_default.png"
コード例 #29
0
ファイル: NextEpgInfo.py プロジェクト: zukon/enigma2
 def __init__(self):
     Renderer.__init__(self)
     VariableText.__init__(self)
     self.epgcache = eEPGCache.getInstance()
     self.numberOfItems = 1
     self.hideLabel = 0
     self.timecolor = ""
     self.labelcolor = ""
     self.foregroundColor = "\c00f0f0f0"
     self.numOfSpaces = 1
コード例 #30
0
 def __init__(self):
     Poll.__init__(self)
     Renderer.__init__(self)
     self.nameCache = {}
     self.pngname = ''
     self.pixmaps = []
     self.pixdelay = 300
     self.control = 0
     self.pics = []
     self.picon_default = 'picon_default.png'
コード例 #31
0
	def __init__(self, session):
		printl("", self , "S")

		Renderer.__init__(self)

		self.showiframe = Showiframe()
		self.session = session
		self.poll_timer = eTimer()
		self.poll_timer.callback.append(self.poll)

		printl("", self, "C")
コード例 #32
0
	def __init__(self):
		Renderer.__init__(self)
		self.last = "None"
		self.__isInst = True
		self.__isHide = True
		self.__delayInitTimer = eTimer()
		try:
			self.__delayInitTimer_conn = self.__delayInitTimer.timeout.connect(self.searchPoster)
		except AttributeError:
			self.__delayInitTimer.timeout.get().append(self.searchPoster)
		self.enaExc = False
コード例 #33
0
	def __init__(self, session):
		printl("", self , "S")

		Renderer.__init__(self)

		self.showiframe = Showiframe()
		self.session = session
		self.poll_timer = eTimer()

		if getOeVersion() != "oe22":
			self.poll_timer.callback.append(self.poll)
		else:
			self.poll_timerConn = self.poll_timer.timeout.connect(self.poll)

		printl("", self, "C")
コード例 #34
0
	def __init__(self):
		Renderer.__init__(self)
		self.fColor = gRGB(255, 255, 255, 0)
		self.bColor = gRGB(0, 0, 0, 255)
		self.numval = -1
コード例 #35
0
 def __init__(self):
     Renderer.__init__(self)