Exemple #1
0
	def __init__(self, session, action, value=None, url=None):
		self.defaultImg = "Extensions/OnDemand/icons/OUG.png"
		StreamsThumbCommon.__init__(self, session, action, value, url)

		self.isAtotZ = False
		self.isRtl = False
		self.isRtlBack = False
		self.level = self.UG_LEVEL_ALL
Exemple #2
0
    def __init__(self, session, action, value=None, url=None):
        self.defaultImg = "Extensions/OnDemand/icons/OUG.png"
        StreamsThumbCommon.__init__(self, session, action, value, url)

        self.isAtotZ = False
        self.isRtl = False
        self.isRtlBack = False
        self.level = self.UG_LEVEL_ALL
Exemple #3
0
	def __init__(self, session, action, value=None, url=None):
		self.defaultImg = "Extensions/OnDemand/icons/OUG.png"
		self.showIcon = str(config.ondemand.ShowImages.value)
		StreamsThumbCommon.__init__(self, session, action, value, url)

		self.isAtotZ = False
		self.isRtl = False
		self.isRtlBack = False
		self.level = self.UG_LEVEL_ALL
Exemple #4
0
    def __init__(self, session, action, value=None, url=None):
        self.defaultImg = "Extensions/OnDemand/icons/OUG.png"
        self.showIcon = str(config.ondemand.ShowImages.value)
        StreamsThumbCommon.__init__(self, session, action, value, url)

        self.isAtotZ = False
        self.isRtl = False
        self.isRtlBack = False
        self.level = self.UG_LEVEL_ALL
Exemple #5
0
    def __init__(self, session, action, value, url):
        self.defaultImg = 'Extensions/OnDemand/icons/FolderIcon.png'

        self.showWMA = str(config.ondemand.ShowiRadioWMA.value)
        self.showDefault = str(config.ondemand.ShowTuneinDefault.value)
        self.showIcon = str(config.ondemand.ShowTuneinLogos.value)

        if self.showIcon == 'True':
            if self.showDefault == 'False':
                self.defaultImg = ''

        self.favoriteConfig = Config()
        if os_path.exists(FAVORITE_FILE):
            self.favoriteConfig.loadFromFile(FAVORITE_FILE)

        self.favoriteConfig.entriescount = ConfigInteger(0)
        self.favoriteConfig.Entries = ConfigSubList()
        self.initFavoriteConfig()
        self.genreList = []
        self.getGenreList(self.genreList)

        self.screenName = "TuneinStreamsThumbCommon"
        StreamsThumbCommon.__init__(self, session, action, value, url,
                                    self.screenName)

        self.skin = """
				<screen position="0,0" size="e,e" flags="wfNoBorder" >
					<widget name="lab1" position="0,0" size="e,e" font="Regular;24" halign="center" valign="center" transparent="0" zPosition="5" />
					<widget source="Title" render="Label" position="20,0" size="e,50" font="Regular;32" />
					<widget name="list" position="0,50" size="e,e-50" scrollbarMode="showOnDemand" transparent="1" />
					<ePixmap pixmap="ViX-Common/buttons/green.png" position="800,10" size="40,40" transparent="1" alphatest="on" />
					<widget source="key_green" render="Label" position="810,0" zPosition="1" size="200,40" font="Regular;20" valign="center" halign="center" transparent="1" />
				</screen>"""

        self["key_green"] = StaticText(_("Add to Favorites"))

        self["genreActions"] = ActionMap(
            ["ColorActions"], {
                "red": self.red_pressed,
                "green": self.green_pressed,
                "yellow": self.yellow_pressed,
                "blue": self.blue_pressed,
            }, -1)
	def __init__(self, session, action, value, url):
		self.defaultImg = 'Extensions/OnDemand/icons/FolderIcon.png'
		
		self.showWMA = str(config.ondemand.ShowiRadioWMA.value)
		self.showDefault = str(config.ondemand.ShowTuneinDefault.value)
		self.showIcon = str(config.ondemand.ShowTuneinLogos.value)

		if self.showIcon == 'True':		
			if self.showDefault == 'False':
				self.defaultImg = ''
			
		self.favoriteConfig = Config()
		if os_path.exists(FAVORITE_FILE):
			self.favoriteConfig.loadFromFile(FAVORITE_FILE)

		self.favoriteConfig.entriescount = ConfigInteger(0)
		self.favoriteConfig.Entries = ConfigSubList()
		self.initFavoriteConfig()
		self.genreList = []
		self.getGenreList(self.genreList)

		self.screenName = "TuneinStreamsThumbCommon"
		StreamsThumbCommon.__init__(self, session, action, value, url, self.screenName)

		self.skin = """
				<screen position="0,0" size="e,e" flags="wfNoBorder" >
					<widget name="lab1" position="0,0" size="e,e" font="Regular;24" halign="center" valign="center" transparent="0" zPosition="5" />
					<widget source="Title" render="Label" position="20,0" size="e,50" font="Regular;32" />
					<widget name="list" position="0,50" size="e,e-50" scrollbarMode="showOnDemand" transparent="1" />
					<ePixmap pixmap="ViX-Common/buttons/green.png" position="800,10" size="40,40" transparent="1" alphatest="on" />
					<widget source="key_green" render="Label" position="810,0" zPosition="1" size="200,40" font="Regular;20" valign="center" halign="center" transparent="1" />
				</screen>"""

		self["key_green"] = StaticText(_("Add to Favorites"))
		
		self["genreActions"] = ActionMap(["ColorActions"],
		{
			"red": self.red_pressed,
			"green": self.green_pressed,
			"yellow": self.yellow_pressed,
			"blue": self.blue_pressed,
		
		}, -1)
Exemple #7
0
 def __init__(self, session, action, value, url):
     self.defaultImg = "Extensions/OnDemand/icons/rteDefault.png"
     self.showIcon = str(config.ondemand.ShowImages.value)
     self.screenName = "RTEStreamsThumbCommon"
     StreamsThumbCommon.__init__(self, session, action, value, url,
                                 self.screenName)
	def __init__(self, session, action, value, url):
		self.defaultImg = "Extensions/OnDemand/icons/rteDefault.png"
		self.showIcon = str(config.ondemand.ShowImages.value)
		self.screenName = "RTEStreamsThumbCommon"
		StreamsThumbCommon.__init__(self, session, action, value, url, self.screenName)
	def __init__(self, session, action, value, url):
		self.defaultImg = "Extensions/OnDemand/icons/itvDefault.png"
		StreamsThumbCommon.__init__(self, session, action, value, url)
	def __init__(self, session, action, value, url):
		self.defaultImg = "Extensions/OnDemand/icons/itvDefault.png"
		self.showIcon = str(config.ondemand.ShowImages.value)
		StreamsThumbCommon.__init__(self, session, action, value, url)
Exemple #11
0
	def __init__(self, session, action, value, url):
		self.defaultImg = "Extensions/OnDemand/icons/fourOD.png"
		StreamsThumbCommon.__init__(self, session, action, value, url)