Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/e/n/enigma2-plugins-HEAD/audiosync/src/AC3main.py   enigma2-plugins(Download)
from AC3utils import AC3, PCM, AC3GLOB, PCMGLOB, AC3PCM, SKIN
from AC3delay import AC3delay
from enigma import ePoint
from HelpableNumberActionMap import HelpableNumberActionMap
from Components.Label import Label,MultiColorLabel
    def keyLeft(self):
        if self.AC3delay.whichAudio == PCMGLOB:
            self.AC3delay.whichAudio = PCM
        elif self.AC3delay.whichAudio == AC3GLOB:
            self.AC3delay.whichAudio = AC3
    def keyRight(self):
        if self.AC3delay.whichAudio == AC3:
            self.AC3delay.whichAudio = AC3GLOB
        elif self.AC3delay.whichAudio == PCM:
            self.AC3delay.whichAudio = PCMGLOB
    def setActiveSlider(self):
        # Reset colors of all tabs
        if self.AC3delay.whichAudio in (AC3,PCM):
    def setChannelInfoText(self):
        sActiveAudio = str(self.AC3delay.selectedAudioInfo[0])
        sBitstreamDelay = _("%i ms") %self.AC3delay.systemDelay[AC3]
        sPCMDelay = _("%i ms") %self.AC3delay.systemDelay[PCM]

src/e/n/enigma2-plugins-HEAD/audiosync/src/AC3delay.py   enigma2-plugins(Download)
from AC3utils import AC3, PCM, AC3GLOB, PCMGLOB, AC3PCM
from Components.config import config
from enigma import eTimer
from Tools.ISO639 import LanguageCodes
from Tools.HardwareInfo import HardwareInfo
            if sAudio == AC3:
                iDelay = self.iAudioDelay.getAC3Delay()
            elif sAudio == PCM:
                iDelay = self.iAudioDelay.getPCMDelay()
            elif sAudio == AC3GLOB:
            if sAudio == AC3:
            elif sAudio == PCM:
            elif sAudio == AC3GLOB:
                #Setting the global delay does not activate it, so now we call setPCMDelay to activate the new delay..
        if bInitialized == True:
                        self.channelAudio = AC3
                        self.whichAudio = PCM
                        self.channelAudio = PCM
                    self.selectedAudioInfo = (description, x)